Hi
during the compilation of the 1.6.3 Windows Agent, the compiler
issues a warning, which might introduce a bug.
The code in question (on line 365) is:
From the tooltip info I see that the parameters are OK, but the return
value is a double.
My wild guess is, that the value returned is the same as the one returned
in &value. But I'm not sure because I am not a Windows developer
and Google is of no help for this.
I doubt, that the return code is OK in this case, though.
Please look into it.
Regards
Norbert.
during the compilation of the 1.6.3 Windows Agent, the compiler
issues a warning, which might introduce a bug.
Code:
proc.c ..\..\..\src\libs\zbxsysinfo\win32\proc.c(365) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
Code:
if (SYSINFO_RET_OK != (ret = GetProcessAttribute(hProcess, attr_id, type_id, ++counter, &value)))
value is a double.
My wild guess is, that the value returned is the same as the one returned
in &value. But I'm not sure because I am not a Windows developer
and Google is of no help for this.
I doubt, that the return code is OK in this case, though.
Please look into it.
Regards
Norbert.