mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Try to autodetect NT4.
This commit is contained in:
parent
ba8e2a3f9d
commit
2cc30a6f30
1 changed files with 5 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue