From 38c7a375302b7edf116b8e77ddd673dfb67b853e Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 16 Oct 2015 00:50:49 +0200 Subject: Core/Crash reporting: Fixed windows version detection for 8.1 and newer (cherry picked from commit 4c866a0af0ffe1828c5694de7ef7007cefb46966) --- src/common/Debugging/WheatyExceptionReport.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/Debugging/WheatyExceptionReport.h') diff --git a/src/common/Debugging/WheatyExceptionReport.h b/src/common/Debugging/WheatyExceptionReport.h index 8c2479d5232..eb62d8bceef 100644 --- a/src/common/Debugging/WheatyExceptionReport.h +++ b/src/common/Debugging/WheatyExceptionReport.h @@ -3,6 +3,8 @@ #if PLATFORM == PLATFORM_WINDOWS && !defined(__MINGW32__) +#include +#include #include #include #include @@ -197,6 +199,8 @@ class WheatyExceptionReport static bool stackOverflowException; static bool alreadyCrashed; static std::mutex alreadyCrashedLock; + typedef NTSTATUS(NTAPI* pRtlGetVersion)(PRTL_OSVERSIONINFOW lpVersionInformation); + static pRtlGetVersion RtlGetVersion; static char* PushSymbolDetail(char* pszCurrBuffer); static char* PopSymbolDetail(char* pszCurrBuffer); -- cgit v1.2.3