Commit 3b1a7a7a authored by Ivan Leo Puoti's avatar Ivan Leo Puoti Committed by Alexandre Julliard

Better EXE version check in VERSION_GetLinkedDllVersion.

parent 77dd4f5b
......@@ -456,6 +456,27 @@ static DWORD VERSION_GetLinkedDllVersion(void)
return WIN98;
}
switch (ophd->MajorOperatingSystemVersion)
{
case 5:
switch (ophd->MinorOperatingSystemVersion)
{
case 0 : return NT2K;
case 1 : return WINXP;
case 2 : return WIN2K3;
}
break;
case 4:
switch(ophd->MinorOperatingSystemVersion)
{
case 90 : return WINME;
case 10 : return WIN98;
case 0 : return WIN95; /* FIXME: We should check for NT40 here */
}
break;
}
FIXME("Unknown EXE OS version %d.%d, please report !!\n",
ophd->MajorOperatingSystemVersion, ophd->MinorOperatingSystemVersion );
return WIN98;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment