Windows: Remove OS version guard. Unsupported versions will fail to run in the first place due to missing symbol errors.

git-svn-id: https://svn.eduke32.com/eduke32@5639 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-02-29 06:34:08 +00:00
parent 85d1fa60c8
commit d88df093a7
3 changed files with 3 additions and 8 deletions

View file

@ -407,7 +407,7 @@ int32_t main(int32_t argc, char *argv[])
if (!CheckWinVersion())
{
MessageBox(0, "This application requires Windows XP or better to run.", apptitle, MB_OK | MB_ICONSTOP);
MessageBox(0, "This application requires a newer Windows version to run.", apptitle, MB_OK | MB_ICONSTOP);
return -1;
}
#elif defined(GEKKO)

View file

@ -45,14 +45,9 @@ BOOL CheckWinVersion(void)
ZeroMemory(&osv, sizeof(osv));
osv.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
// we don't like anything older than Windows XP
if (!GetVersionEx((LPOSVERSIONINFOA)&osv)) return FALSE;
if (osv.dwMajorVersion >= 6) return TRUE;
if (osv.dwMajorVersion == 5 && osv.dwMinorVersion >= 1) return TRUE;
return FALSE;
return TRUE;
}
static void win_printversion(void)

View file

@ -336,7 +336,7 @@ int32_t WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, in
if (!CheckWinVersion() || hPrevInst)
{
MessageBox(0, "This application requires Windows XP or better to run.",
MessageBox(0, "This application requires a newer Windows version to run.",
apptitle, MB_OK|MB_ICONSTOP);
return -1;
}