[CMLIB] UNIMPLEMENTED_ONCE less hand-knitted (#5889)

allows to get rid of static var PrintCount, at least visually in the code
This commit is contained in:
Joachim Henze 2023-11-05 09:12:49 +01:00 committed by GitHub
parent efb9128c24
commit f6de3881ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}