mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
2010-04-16 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: fixed getOSVersion. Crashed in Windows 2008 and Windows 7. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3ade090402
commit
d53c9236ab
@ -1,3 +1,8 @@
|
|||||||
|
2010-04-16 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* windows/pandora_wmi.cc: fixed getOSVersion. Crashed in Windows 2008
|
||||||
|
and Windows 7.
|
||||||
|
|
||||||
2009-12-18 Ramon Novoa <rnovoa@artica.es>
|
2009-12-18 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* windows/pandora_wmi.cc: Fixed bug #2907481.
|
* windows/pandora_wmi.cc: Fixed bug #2907481.
|
||||||
|
@ -400,9 +400,10 @@ Pandora_Wmi::getOSVersion () {
|
|||||||
dhGetValue (L"%s", &version, quickfix,
|
dhGetValue (L"%s", &version, quickfix,
|
||||||
L".CSDVersion");
|
L".CSDVersion");
|
||||||
|
|
||||||
ret = version;
|
if (version != NULL) {
|
||||||
dhFreeString (version);
|
ret = version;
|
||||||
|
dhFreeString (version);
|
||||||
|
}
|
||||||
} NEXT_THROW (quickfix);
|
} NEXT_THROW (quickfix);
|
||||||
} catch (string errstr) {
|
} catch (string errstr) {
|
||||||
pandoraLog ("getOSVersion error. %s", errstr.c_str ());
|
pandoraLog ("getOSVersion error. %s", errstr.c_str ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user