From 85d1fa60c8230a08473c7a1e0bc2a17251343957 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 29 Feb 2016 06:34:04 +0000 Subject: [PATCH] Windows: Re-add pre-XP version strings. git-svn-id: https://svn.eduke32.com/eduke32@5638 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/winbits.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/winbits.c b/polymer/eduke32/build/src/winbits.c index 56400d8c7..cdbf50d48 100644 --- a/polymer/eduke32/build/src/winbits.c +++ b/polymer/eduke32/build/src/winbits.c @@ -61,12 +61,22 @@ static void win_printversion(void) switch (osv.dwPlatformId) { + case VER_PLATFORM_WIN32_WINDOWS: + if (osv.dwMinorVersion < 10) + ver = "95"; + else if (osv.dwMinorVersion < 90) + ver = "98"; + else + ver = "ME"; + break; + case VER_PLATFORM_WIN32_NT: switch (osv.dwMajorVersion) { case 5: switch (osv.dwMinorVersion) { + case 0: ver = "2000"; break; case 1: ver = "XP"; break; case 2: ver = osv.wProductType == VER_NT_WORKSTATION ? "XP x64" : "Server 2003"; break; } @@ -85,7 +95,7 @@ static void win_printversion(void) case 10: switch (osv.dwMinorVersion) { - case 0: ver = osv.wProductType == VER_NT_WORKSTATION ? "10" : "Server 10"; break; + case 0: ver = osv.wProductType == VER_NT_WORKSTATION ? "10" : "Server 2016"; break; } break; }