From ff045b2dbea893b162a200daa9d1fec641897659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 26 Mar 2020 16:28:10 +0100 Subject: [PATCH] [NDK] Fix RTL_PAGED_CODE macro in user mode NOP_FUNCTION is defined to "(void)0". Calling : RTL_PAGED_CODE(); in user mode was changed to: (void)0(); As "0" is not callable, this was leading to a compilation error. --- sdk/include/ndk/rtlfuncs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/include/ndk/rtlfuncs.h b/sdk/include/ndk/rtlfuncs.h index 5b6f878b140..68f43745199 100644 --- a/sdk/include/ndk/rtlfuncs.h +++ b/sdk/include/ndk/rtlfuncs.h @@ -247,7 +247,7 @@ RtlConvertUlongToLuid( // // This macro does nothing in user mode // -#define RTL_PAGED_CODE NOP_FUNCTION +#define RTL_PAGED_CODE() #endif