Skip to content

Commit 5a71995

Browse files
committed
[CMLIB] Define PAGED_CODE() to a no-op when compiling the library for the bootloader
1 parent e1d8ccb commit 5a71995

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎sdk/lib/cmlib/cmlib.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@
156156
} SECURITY_DESCRIPTOR_RELATIVE, *PISECURITY_DESCRIPTOR_RELATIVE;
157157

158158
#define CMLTRACE(x, ...)
159+
159160
#undef PAGED_CODE
160161
#define PAGED_CODE()
162+
161163
#define REGISTRY_ERROR ((ULONG)0x00000051L)
162164

163165
#else
@@ -180,6 +182,11 @@
180182
#include <ntifs.h>
181183
#include <bugcodes.h>
182184

185+
#ifdef _BLDR_
186+
#undef PAGED_CODE
187+
#define PAGED_CODE()
188+
#endif
189+
183190
/* Prevent inclusion of Windows headers through <wine/unicode.h> */
184191
#define _WINDEF_
185192
#define _WINBASE_

0 commit comments

Comments
 (0)