VERSION_GetLinkedDllVersion bug fix

William Lahti computerman413 at ezrs.com
Sun Dec 12 16:49:32 CST 2004


I fixed a bug in ntdll's VERSION_GetLinkedDllVersion which caused it to
not be able to return any Windows version higher than WIN98. It has now been
extended for WIN2K, WINXP, and WIN2K3. This function would eventually be
called any time that kernel's GetVersionEx was called, which is a problem
for any software requiring a version higher than WIN98, like Visual Basic
.NET.

ChangeLog entry:

* dlls/ntdll/version.c
William Lahti <computerman413 at ezrs.com>
Fixed bug in VERSION_GetLinkedDllVersion
-------------- next part --------------
--- ../wine-20041201/dlls/ntdll/version.c	2004-08-13 19:53:44.000000000 -0400
+++ dlls/ntdll/version.c	2004-12-10 20:32:46.000000000 -0500
@@ -455,7 +455,17 @@
         else
             return WIN98;
     }
-
+    if (ophd->MajorSubsystemVersion == 4){
+	if (ophd->MinorOperatingSystemVersion == 0){
+	    return NT2K;
+	}
+	if (ophd->MinorOperatingSystemVersion == 1){
+            return WINXP;
+	}
+	if (ophd->MinorOperatingSystemVersion == 2){
+	    return WIN2K3;
+	}
+    }
     return WIN98;
 }
 


More information about the wine-patches mailing list