diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32heap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32heap.c b/src/w32heap.c index e564a4efedc..eb878a45e94 100644 --- a/src/w32heap.c +++ b/src/w32heap.c | |||
| @@ -47,6 +47,7 @@ int etext; | |||
| 47 | /* The major and minor versions of NT. */ | 47 | /* The major and minor versions of NT. */ |
| 48 | int w32_major_version; | 48 | int w32_major_version; |
| 49 | int w32_minor_version; | 49 | int w32_minor_version; |
| 50 | int w32_build_number; | ||
| 50 | 51 | ||
| 51 | /* Distinguish between Windows NT and Windows 95. */ | 52 | /* Distinguish between Windows NT and Windows 95. */ |
| 52 | int os_subtype; | 53 | int os_subtype; |
| @@ -83,6 +84,10 @@ cache_system_info (void) | |||
| 83 | /* Cache os info. */ | 84 | /* Cache os info. */ |
| 84 | osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); | 85 | osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); |
| 85 | GetVersionEx (&osinfo_cache); | 86 | GetVersionEx (&osinfo_cache); |
| 87 | |||
| 88 | w32_build_number = osinfo_cache.dwBuildNumber; | ||
| 89 | if (os_subtype == OS_WIN95) | ||
| 90 | w32_build_number &= 0xffff; | ||
| 86 | } | 91 | } |
| 87 | 92 | ||
| 88 | /* Emulate getpagesize. */ | 93 | /* Emulate getpagesize. */ |