[NDK] Fix RTL_PAGED_CODE macro in user mode
authorHervé Poussineau <hpoussin@reactos.org>
Thu, 26 Mar 2020 15:28:10 +0000 (16:28 +0100)
committerHervé Poussineau <hpoussin@reactos.org>
Thu, 26 Mar 2020 15:39:16 +0000 (16:39 +0100)
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

index 5b6f878..68f4374 100644 (file)
@@ -247,7 +247,7 @@ RtlConvertUlongToLuid(
 //
 // This macro does nothing in user mode
 //
-#define RTL_PAGED_CODE NOP_FUNCTION
+#define RTL_PAGED_CODE()
 
 #endif