Try to autodetect NT4.
This commit is contained in:
parent
ba8e2a3f9d
commit
2cc30a6f30
|
@ -118,9 +118,12 @@ WINDOWS_VERSION VERSION_GetVersion(void)
|
||||||
return WIN31; /* FIXME: hmm, look at DDB.version ? */
|
return WIN31; /* FIXME: hmm, look at DDB.version ? */
|
||||||
}
|
}
|
||||||
peheader = PE_HEADER(PROCESS_Current()->exe_modref->module);
|
peheader = PE_HEADER(PROCESS_Current()->exe_modref->module);
|
||||||
if (peheader->OptionalHeader.MajorSubsystemVersion == 4)
|
if (peheader->OptionalHeader.MajorSubsystemVersion == 4) {
|
||||||
/* FIXME: NT4 has the same majorversion; add a check here for it. */
|
/* FIXME: check probably not 100% good, verify with win98 too */
|
||||||
|
if (peheader->OptionalHeader.MajorOperatingSystemVersion == 4)
|
||||||
|
return NT40;
|
||||||
return WIN95;
|
return WIN95;
|
||||||
|
}
|
||||||
if (peheader->OptionalHeader.MajorSubsystemVersion == 3)
|
if (peheader->OptionalHeader.MajorSubsystemVersion == 3)
|
||||||
{
|
{
|
||||||
/* Win3.10 */
|
/* Win3.10 */
|
||||||
|
|
Loading…
Reference in New Issue