From db55933b0ca1a095f8e3136053ae8b514c3dc908 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Fri, 24 Jan 2020 20:09:07 +0100 Subject: [PATCH] [CMLIB] Use UNIMPLEMENTED_ONCE in HvHiveWillShrink --- sdk/include/host/typedefs.h | 1 + sdk/lib/cmlib/hivewrt.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/include/host/typedefs.h b/sdk/include/host/typedefs.h index d3bea3bbcef..eaa2c9f5c06 100644 --- a/sdk/include/host/typedefs.h +++ b/sdk/include/host/typedefs.h @@ -27,6 +27,7 @@ /* Basic definitions */ #define UNIMPLEMENTED { printf("%s unimplemented\n", __FUNCTION__); exit(1); } +#define UNIMPLEMENTED_ONCE { printf("%s unimplemented\n", __FUNCTION__); exit(1); } #define ASSERT(x) assert(x) #define ASSERTMSG(m, x) assert(x) #define DPRINT if (0) printf diff --git a/sdk/lib/cmlib/hivewrt.c b/sdk/lib/cmlib/hivewrt.c index ef4ceb001b6..76bf72b1b45 100644 --- a/sdk/lib/cmlib/hivewrt.c +++ b/sdk/lib/cmlib/hivewrt.c @@ -277,7 +277,7 @@ CMAPI HvHiveWillShrink(IN PHHIVE RegistryHive) { /* No shrinking yet */ - UNIMPLEMENTED; + UNIMPLEMENTED_ONCE; return FALSE; }