From d88df093a737034139e151a7903ea6661f5f45fd Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 29 Feb 2016 06:34:08 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/sdlayer.c | 2 +- polymer/eduke32/build/src/winbits.c | 7 +------ polymer/eduke32/build/src/winlayer.c | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 43a3f553a..e1442df8e 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -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) diff --git a/polymer/eduke32/build/src/winbits.c b/polymer/eduke32/build/src/winbits.c index cdbf50d48..dee8cb06f 100644 --- a/polymer/eduke32/build/src/winbits.c +++ b/polymer/eduke32/build/src/winbits.c @@ -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) diff --git a/polymer/eduke32/build/src/winlayer.c b/polymer/eduke32/build/src/winlayer.c index fbd60828d..8cdd27fc6 100644 --- a/polymer/eduke32/build/src/winlayer.c +++ b/polymer/eduke32/build/src/winlayer.c @@ -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; }