Changeset 798 in dev for branches/egtra/ab5.0/abdev/OldWindowsHelperImpl.cpp
- Timestamp:
- Feb 5, 2011, 11:43:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/OldWindowsHelperImpl.cpp
r787 r798 1 1 #include "stdafx.h" 2 3 static OSVERSIONINFO GetVersionEx2() 4 { 5 OSVERSIONINFO vi = {sizeof vi}; 6 GetVersionEx(&vi); 7 return vi; 8 } 9 10 static OSVERSIONINFO const vi = GetVersionEx2(); 11 12 2 #include "OSVersion.h" 13 3 14 4 static HMODULE hmodKernel; … … 146 136 if (InitializeCriticalSectionAndSpinCount_Real != nullptr) 147 137 { 148 OSVERSIONINFO vi = {sizeof vi};149 ::GetVersionEx(&vi);150 138 BOOL ret = InitializeCriticalSectionAndSpinCount_Real(lpcs, spinCount); 151 return vi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS139 return ActiveBasic::Common::Is9x() 152 140 ? TRUE 153 141 : ret;
Note:
See TracChangeset
for help on using the changeset viewer.