From f47ffe2a4d1018e7353b0802b96747308e23ff43 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 4 Jan 2019 20:43:19 -0500 Subject: Fix IsDebuggerPresent guard for ARM64 (GH #776) --- fipstest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fipstest.cpp') diff --git a/fipstest.cpp b/fipstest.cpp index 235af000..2440b94f 100644 --- a/fipstest.cpp +++ b/fipstest.cpp @@ -401,7 +401,7 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule } } -#if defined(_MSC_VER) && _MSC_VER >= 1400 && !defined(_M_ARM) +#if defined(_MSC_VER) && _MSC_VER >= 1400 && !(defined(_M_ARM) || defined(_M_ARM64)) // first byte of _CRT_DEBUGGER_HOOK gets modified in memory by the debugger invisibly, so read it from file if (IsDebuggerPresent()) { -- cgit v1.2.1