Add a version for Windows 2003

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm not sure about all of the 4th hunk, especially the case 7 stuff.
Somebody actually having a working Windows 2003 installation can verify
please (the code to obtain the value should Just Work (tm))?

Changelog:
Add Windows 2003 to the versions Wine can return.

Vincent
Index: misc/version.c
===================================================================
RCS file: /home/wine/wine/misc/version.c,v
retrieving revision 1.68
diff -u -r1.68 version.c
--- misc/version.c	20 Apr 2003 02:46:44 -0000	1.68
+++ misc/version.c	13 Aug 2003 12:25:48 -0000
@@ -53,6 +53,7 @@
     NT40,    /* Windows NT 4.0 */
     NT2K,    /* Windows 2000 */
     WINXP,   /* Windows XP */
+    WIN2K3,  /* Windows 2003 */
     NB_WINDOWS_VERSIONS
 } WINDOWS_VERSION;
 
@@ -193,6 +194,17 @@
             VER_PLATFORM_WIN32_NT, "Service Pack 1",
             1, 0, VER_SUITE_SINGLEUSERTS, VER_NT_WORKSTATION, 30 /* FIXME: Great, a reserved field with a value! */
         }
+    },
+    /* WIN2K3 */
+    {
+	"Windows 2003",
+        0x05005F03, /* Assuming DOS 5 like the other NT */
+        0x0ECE0205,
+        {
+            sizeof(OSVERSIONINFOA), 5, 2, 0xECE,
+            VER_PLATFORM_WIN32_NT, NULL,
+            0, 0, VER_SUITE_SINGLEUSERTS, VER_NT_SERVER, 0
+        }
     }
 };
 
@@ -207,7 +219,8 @@
     "nt351",
     "nt40",
     "win2000,win2k,nt2k,nt2000",
-    "winxp"
+    "winxp",
+    "win2003,win2k3"
 };
 
 /* if one of the following dlls is importing ntdll the windows
@@ -427,9 +440,10 @@
 		  case 4: return NT40;
 		  case 5: return NT2K;
 		  case 6: return WINXP;
+		  case 7: return WIN2K3; /* FIXME: Not sure, should be verified with a Win2K3 dll */
 		  default:
 			  FIXME("Unknown DLL OS version, please report !!\n");
-			  return WINXP;
+			  return WIN2K3;
 	      }
 	    }
         }

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux