Changeset 47011 in vbox for trunk/src/VBox/Runtime/r3/win/RTSystemQueryOSInfo-win.cpp
- Timestamp:
- Jul 5, 2013 3:34:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/RTSystemQueryOSInfo-win.cpp
r47010 r47011 309 309 */ 310 310 OSVERSIONINFOEX OSInfoEx; 311 memset(&OSInfoEx, '\0', sizeof(OSInfoEx));312 OSInfoEx.dwOSVersionInfoSize = sizeof(OSVERSIONINFO );311 RT_ZERO(OSInfoEx); 312 OSInfoEx.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); 313 313 if (!GetVersionEx((LPOSVERSIONINFO) &OSInfoEx)) 314 314 { … … 319 319 320 320 /* Get extended version info for 2000 and later. */ 321 if ( 322 && 323 { 324 ZeroMemory(&OSInfoEx, sizeof(OSInfoEx));321 if ( OSInfoEx.dwPlatformId == VER_PLATFORM_WIN32_NT 322 && OSInfoEx.dwMajorVersion >= 5) 323 { 324 RT_ZERO(OSInfoEx); 325 325 OSInfoEx.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); 326 326 if (!GetVersionEx((LPOSVERSIONINFO) &OSInfoEx))
Note:
See TracChangeset
for help on using the changeset viewer.