Try to autodetect NT4.

This commit is contained in:
Marcus Meissner 1999-01-03 16:18:57 +00:00 committed by Alexandre Julliard
parent ba8e2a3f9d
commit 2cc30a6f30
1 changed files with 5 additions and 2 deletions

View File

@ -118,9 +118,12 @@ WINDOWS_VERSION VERSION_GetVersion(void)
return WIN31; /* FIXME: hmm, look at DDB.version ? */
}
peheader = PE_HEADER(PROCESS_Current()->exe_modref->module);
if (peheader->OptionalHeader.MajorSubsystemVersion == 4)
/* FIXME: NT4 has the same majorversion; add a check here for it. */
if (peheader->OptionalHeader.MajorSubsystemVersion == 4) {
/* FIXME: check probably not 100% good, verify with win98 too */
if (peheader->OptionalHeader.MajorOperatingSystemVersion == 4)
return NT40;
return WIN95;
}
if (peheader->OptionalHeader.MajorSubsystemVersion == 3)
{
/* Win3.10 */