diff options
author | Shauren <shauren.trinity@gmail.com> | 2015-10-16 00:50:49 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2015-10-29 18:59:24 +0100 |
commit | 38c7a375302b7edf116b8e77ddd673dfb67b853e (patch) | |
tree | 8099592fb2f71199240fa560a87214853ad8ad4c /src/common/Debugging/WheatyExceptionReport.h | |
parent | c7bad70e55e02fa4270f225e2dc42fd080db4abd (diff) |
Core/Crash reporting: Fixed windows version detection for 8.1 and newer
(cherry picked from commit 4c866a0af0ffe1828c5694de7ef7007cefb46966)
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); |