diff options
author | Shauren <shauren.trinity@gmail.com> | 2015-10-16 00:50:49 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2015-10-16 00:50:49 +0200 |
commit | 4c866a0af0ffe1828c5694de7ef7007cefb46966 (patch) | |
tree | 91d1c72c51fac6169dace3bf16c3dc22e8597336 /src/common/Debugging/WheatyExceptionReport.h | |
parent | 0a5d28ffc706606f1c1519c7cc1bdb6b91aee154 (diff) |
Core/Crash reporting: Fixed windows version detection for 8.1 and newer
Diffstat (limited to 'src/common/Debugging/WheatyExceptionReport.h')
-rw-r--r-- | src/common/Debugging/WheatyExceptionReport.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <winnt.h> +#include <winternl.h> #include <dbghelp.h> #include <set> #include <stdlib.h> @@ -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); |