From fbe6a0968e2935de6a9e6a8000d3b2aa31fdbe68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20S=C5=82abo=C5=84?= Date: Mon, 8 May 2023 21:43:32 +0200 Subject: [PATCH] [CMLIB] Undefine PAGED_CODE also when compiling boot loader --- sdk/lib/cmlib/cmlib.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/lib/cmlib/cmlib.h b/sdk/lib/cmlib/cmlib.h index fd6de8c75db..5421f860fd5 100644 --- a/sdk/lib/cmlib/cmlib.h +++ b/sdk/lib/cmlib/cmlib.h @@ -149,8 +149,6 @@ } SECURITY_DESCRIPTOR_RELATIVE, *PISECURITY_DESCRIPTOR_RELATIVE; #define CMLTRACE(x, ...) - #undef PAGED_CODE - #define PAGED_CODE() #define REGISTRY_ERROR ((ULONG)0x00000051L) #else @@ -179,6 +177,10 @@ #define _WINNLS_ #endif +#if defined(CMLIB_HOST) || defined(_BLDR_) + #undef PAGED_CODE + #define PAGED_CODE() +#endif // // These define the Debug Masks Supported