https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f6de3881ca8418005be1a9335dc27a554380987d
commit f6de3881ca8418005be1a9335dc27a554380987d Author: Joachim Henze <joachim.he...@reactos.org> AuthorDate: Sun Nov 5 09:12:49 2023 +0100 Commit: GitHub <nore...@github.com> CommitDate: Sun Nov 5 09:12:49 2023 +0100 [CMLIB] UNIMPLEMENTED_ONCE less hand-knitted (#5889) allows to get rid of static var PrintCount, at least visually in the code --- sdk/lib/cmlib/hivewrt.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/sdk/lib/cmlib/hivewrt.c b/sdk/lib/cmlib/hivewrt.c index 76bf72b1b45..46800c21741 100644 --- a/sdk/lib/cmlib/hivewrt.c +++ b/sdk/lib/cmlib/hivewrt.c @@ -13,6 +13,8 @@ static BOOLEAN CMAPI HvpWriteLog( PHHIVE RegistryHive) { + UNIMPLEMENTED_ONCE; +#if 0 // UNIMPLEMENTED ULONG FileOffset; UINT32 BufferSize; UINT32 BitmapSize; @@ -22,13 +24,6 @@ HvpWriteLog( ULONG LastIndex; PVOID BlockPtr; BOOLEAN Success; - static ULONG PrintCount = 0; - - if (PrintCount++ == 0) - { - UNIMPLEMENTED; - } - return TRUE; ASSERT(RegistryHive->ReadOnly == FALSE); ASSERT(RegistryHive->BaseBlock->Length == @@ -139,7 +134,7 @@ HvpWriteLog( { DPRINT("FileFlush failed\n"); } - +#endif // UNIMPLEMENTED return TRUE; }