Le ven 17/12/2004 à 10:30, Vincent Béron a écrit :
> Le ven 17/12/2004 à 09:41, Ira Krakow a écrit :
> > I did a fresh install of Wine from the Winehq CVS
> > repository.  I got the following message during the
> > install:
> > 
> > fixme:ver:VERSION_GetLinkedDllVersion Unknown EXE OS
> > version 1.0, please report!!
> 
> Does the included patch help?

In case it does help, this patch should be committed instead.

Changelog:
Better detect a dll's Windows version.

Vincent
Index: wine/dlls/ntdll/version.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/version.c,v
retrieving revision 1.10
diff -u -r1.10 version.c
--- wine/dlls/ntdll/version.c	16 Dec 2004 14:48:43 -0000	1.10
+++ wine/dlls/ntdll/version.c	17 Dec 2004 16:51:20 -0000
@@ -471,8 +471,18 @@
         {
         case 90 : return WINME;
         case 10 : return WIN98;
-        case 0  : return WIN95; /* FIXME: We should check for NT40 here */
+        case 0  :
+            switch(ophd->MajorImageVersion)
+            {
+            case 4 : return NT40;
+            case 0 : return WIN95;
+            }
+            break;
         }
+        break;
+    case 1:
+        if(ophd->MinorOperatingSystemVersion == 0)
+           return WIN95;
         break;
     }
     FIXME("Unknown EXE OS version %d.%d, please report !!\n",

Reply via email to