From 095740c1fe0366986cf6f2607b283df888578bec Mon Sep 17 00:00:00 2001 From: RaptorFactor Date: Sat, 25 Mar 2017 23:14:12 -0700 Subject: [PATCH] Fix linking of fipstest for MSVC targeting ARM (__crt_debugger_hook is not available). --- fipstest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fipstest.cpp b/fipstest.cpp index 806bac41..dcc719e8 100644 --- a/fipstest.cpp +++ b/fipstest.cpp @@ -400,7 +400,7 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule } } -#if defined(_MSC_VER) && _MSC_VER >= 1400 +#if defined(_MSC_VER) && _MSC_VER >= 1400 && !defined(_M_ARM) // first byte of _CRT_DEBUGGER_HOOK gets modified in memory by the debugger invisibly, so read it from file if (IsDebuggerPresent()) {