Better detect a dll's Windows version.

This commit is contained in:
Vincent Béron 2004-12-17 19:06:30 +00:00 committed by Alexandre Julliard
parent 71e322b29f
commit a29d82239e
1 changed files with 11 additions and 1 deletions

View File

@ -471,10 +471,20 @@ static DWORD VERSION_GetLinkedDllVersion(void)
{
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",
ophd->MajorOperatingSystemVersion, ophd->MinorOperatingSystemVersion );
return WIN98;