From 4629bdef5c70e8f257fb3af20fc10bdb16985aff Mon Sep 17 00:00:00 2001 From: freem Date: Mon, 6 Oct 2014 17:50:47 -0500 Subject: [PATCH] Make the log mention Windows 8 instead of "unknown NT-based" (fwiw, I don't like windows 8. also can someone tell me what version number windows 10 will be using?) --- src/archutils/Win32/DebugInfoHunt.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/archutils/Win32/DebugInfoHunt.cpp b/src/archutils/Win32/DebugInfoHunt.cpp index b05a1f098e..afb0e62b20 100644 --- a/src/archutils/Win32/DebugInfoHunt.cpp +++ b/src/archutils/Win32/DebugInfoHunt.cpp @@ -240,6 +240,7 @@ static void GetWindowsVersionDebugInfo() */ } else if(ovi.dwMajorVersion == 6 && ovi.dwMinorVersion == 1) + { Ver += "Win7"; // todo: make this check work /* @@ -248,6 +249,18 @@ static void GetWindowsVersionDebugInfo() else Ver += "WinServer2008 R2"; */ + } + else if(ovi.dwMajorVersion == 6 && ovi.dwMinorVersion == 2) + { + Ver += "Win8"; + // todo: make this check work + /* + if(ovi.wProductType == VER_NT_WORKSTATION) + Ver += "Win7"; + else + Ver += "WinServer2008 R2"; + */ + } else Ver += "unknown NT-based"; } else Ver += "???";