[SDK] Don't just infinitely spam the DbgPrint in the bootloader (#6763)
authorJustin Miller <justin.miller@reactos.org>
Thu, 18 Apr 2024 19:08:00 +0000 (12:08 -0700)
committerGitHub <noreply@github.com>
Thu, 18 Apr 2024 19:08:00 +0000 (12:08 -0700)
sdk/lib/cmlib/cmlib.h

index 7fcb6c6..bfb35e8 100644 (file)
@@ -380,7 +380,8 @@ extern ULONG CmlibTraceLevel;
 // Hack since big keys are not yet supported
 //
 #ifdef _BLDR_ 
-#define ASSERT_VALUE_BIG(h, s) DbgPrint("Big keys aren't supported!\n");
+#define ASSERT_VALUE_BIG(h, s) \
+    do { if (CmpIsKeyValueBig(h,s)) DbgPrint("Big keys aren't supported!\n"); } while (0)
 #else 
 #define ASSERT_VALUE_BIG(h, s)  \
     ASSERTMSG("Big keys not supported!\n", !CmpIsKeyValueBig(h, s));