Changeset 2452 for trunk/src/kmk/variable.c
- Timestamp:
- Jul 7, 2011, 9:33:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/variable.c
r2451 r2452 1087 1087 1088 1088 1089 #if defined(KMK) && !defined(WINDOWS32) 1089 #if defined(KMK) && !defined(WINDOWS32) 1090 1090 /* Parses out the next number from the uname release level string. Fast 1091 1091 forwards to the end of the string when encountering some non-conforming 1092 1092 chars. */ 1093 1093 1094 1094 static unsigned long parse_release_number (const char **ppsz) 1095 1095 { … … 1132 1132 struct variable *envvar2; 1133 1133 # ifdef WINDOWS32 1134 OSVERSIONINFOEX vix;1134 OSVERSIONINFOEX oix; 1135 1135 # else 1136 1136 struct utsname uts; … … 1213 1213 /* The host kernel version. */ 1214 1214 #if defined(WINDOWS32) 1215 memset (&oix, sizeof (oix));1215 memset (&oix, '\0', sizeof (oix)); 1216 1216 oix.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); 1217 1217 if (!GetVersionEx ((LPOSVERSIONINFO)&oix)) … … 1229 1229 } 1230 1230 else 1231 { 1231 { 1232 1232 ulMajor = oix.dwPlatformId == 1 ? 0 /*Win95/98/ME*/ 1233 ?oix.dwPlatformId == 3 ? 1 /*WinCE*/1233 : oix.dwPlatformId == 3 ? 1 /*WinCE*/ 1234 1234 : 2; /*??*/ 1235 1235 ulMinor = oix.dwMajorVersion; 1236 1236 ulPatch = oix.dwMinorVersion; 1237 ul4th = oix. WservicePackMajor;1237 ul4th = oix.wServicePackMajor; 1238 1238 } 1239 1239 #else
Note:
See TracChangeset
for help on using the changeset viewer.