Changeset 22081 for branches/swt/src/kernel32
- Timestamp:
- Aug 23, 2014, 4:21:44 PM (11 years ago)
- File:
-
- 1 edited
-
branches/swt/src/kernel32/version.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/swt/src/kernel32/version.cpp
r22031 r22081 75 75 ODINNT_VERSION, 76 76 { 77 sizeof(OSVERSIONINFOA), ODINNT_MAJOR_VERSION, ODINNT_MINOR_VERSION, 77 sizeof(OSVERSIONINFOA), ODINNT_MAJOR_VERSION, ODINNT_MINOR_VERSION, 78 78 ODINNT_BUILD_NR, VER_PLATFORM_WIN32_NT, ODINNT_CSDVERSION, 79 79 6, 0, 0, 0 … … 117 117 //****************************************************************************** 118 118 //****************************************************************************** 119 void WIN32API OdinSetVersion(ULONG version) 119 void WIN32API OdinSetVersion(ULONG version) 120 120 { 121 121 switch(version) { … … 127 127 case WINVERSION_WINXPSP3: 128 128 break; 129 default: 129 default: 130 130 DebugInt3(); 131 131 return; … … 139 139 char szVersion[16]; 140 140 141 if(PROFILE_GetOdinIniString(PROFILE_WINVERSION_SECTION, PROFILE_WINVERSION_KEY, 142 "", szVersion, sizeof(szVersion)-1) > 1) 141 if(PROFILE_GetOdinIniString(PROFILE_WINVERSION_SECTION, PROFILE_WINVERSION_KEY, 142 "", szVersion, sizeof(szVersion)-1) > 1) 143 143 { 144 144 if(!stricmp(szVersion, PROFILE_WINVERSION_WIN98)) { … … 201 201 dprintf(("szCSDVersion %s", lpVersionInformation->szCSDVersion)); 202 202 203 if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA)) 203 if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA)) 204 204 {//Windows 2000 (and up) extension 205 205 LPOSVERSIONINFOEXA lpVersionExInformation = (LPOSVERSIONINFOEXA)lpVersionInformation; … … 207 207 lpVersionExInformation->wServicePackMajor = VersionData[winversion].getVersionEx.wServicePackMajor; 208 208 lpVersionExInformation->wServicePackMinor = VersionData[winversion].getVersionEx.wServicePackMinor; 209 /* 209 210 lpVersionExInformation->wReserved[0] = VersionData[winversion].getVersionEx.wReserved[0]; 210 211 lpVersionExInformation->wReserved[1] = VersionData[winversion].getVersionEx.wReserved[1]; 211 212 */ 213 ///-------------------------------------------------------------------[swt-os2] 214 lpVersionExInformation->wSuiteMask = VersionData[winversion].getVersionEx.wSuiteMask; 215 lpVersionExInformation->wProductType = VersionData[winversion].getVersionEx.wProductType; 216 lpVersionExInformation->wReserved = VersionData[winversion].getVersionEx.wReserved; 217 ///---------------------------------------------------------------------------- 218 212 219 dprintf(("service pack version %x.%x", lpVersionExInformation->wServicePackMajor, lpVersionExInformation->wServicePackMinor)); 213 220 } 214 221 215 222 SetLastError(ERROR_SUCCESS); 216 223 return(TRUE); … … 244 251 lstrcpyAtoW(lpVersionInformation->szCSDVersion, VersionData[winversion].getVersionEx.szCSDVersion); 245 252 246 if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXW)) 253 if(lpVersionInformation->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXW)) 247 254 {//Windows 2000 (and up) extension 248 255 LPOSVERSIONINFOEXW lpVersionExInformation = (LPOSVERSIONINFOEXW)lpVersionInformation; 249 256 250 257 lpVersionExInformation->wServicePackMajor = VersionData[winversion].getVersionEx.wServicePackMajor; 251 258 lpVersionExInformation->wServicePackMinor = VersionData[winversion].getVersionEx.wServicePackMinor; 259 /* 252 260 lpVersionExInformation->wReserved[0] = VersionData[winversion].getVersionEx.wReserved[0]; 253 261 lpVersionExInformation->wReserved[1] = VersionData[winversion].getVersionEx.wReserved[1]; 262 */ 263 ///-------------------------------------------------------------------[swt-os2] 264 lpVersionExInformation->wSuiteMask = VersionData[winversion].getVersionEx.wSuiteMask; 265 lpVersionExInformation->wProductType = VersionData[winversion].getVersionEx.wProductType; 266 lpVersionExInformation->wReserved = VersionData[winversion].getVersionEx.wReserved; 267 ///---------------------------------------------------------------------------- 254 268 } 255 269 SetLastError(ERROR_SUCCESS);
Note:
See TracChangeset
for help on using the changeset viewer.
