changeset 33215:38e1998861ff

(w32_build_number): New variable. (cache_system_info): Set it.
author Andrew Innes <andrewi@gnu.org>
date Sun, 05 Nov 2000 21:39:32 +0000
parents 3ee9bf6f1dd2
children 2eb7d429a997
files src/w32heap.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32heap.c	Sun Nov 05 21:38:49 2000 +0000
+++ b/src/w32heap.c	Sun Nov 05 21:39:32 2000 +0000
@@ -47,6 +47,7 @@
 /* The major and minor versions of NT.  */
 int w32_major_version;
 int w32_minor_version;
+int w32_build_number;
 
 /* Distinguish between Windows NT and Windows 95.  */
 int os_subtype;
@@ -83,6 +84,10 @@
   /* Cache os info.  */
   osinfo_cache.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
   GetVersionEx (&osinfo_cache);
+
+  w32_build_number = osinfo_cache.dwBuildNumber;
+  if (os_subtype == OS_WIN95)
+    w32_build_number &= 0xffff;
 }
 
 /* Emulate getpagesize.  */