From: Paul Durrant Date: Thu, 3 Aug 2017 10:35:54 +0000 (+0100) Subject: Remove ZwFlushKey() from registry code X-Git-Tag: 9.0.0-rc1~39 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b2c2e8fb3209beed2b2edca33b4be6b2c2f93dcf;p=pvdrivers%2Fwin%2Fxencons.git Remove ZwFlushKey() from registry code Attempting to flush registry keys early in boot causes an error to be logged. This patch therefore removes the explicit flushes from the registry code. There is no option but to trust Windows lazy flush. Signed-off-by: Paul Durrant --- diff --git a/src/xencons/registry.c b/src/xencons/registry.c index 56f3942..0bf8c0d 100644 --- a/src/xencons/registry.c +++ b/src/xencons/registry.c @@ -457,8 +457,6 @@ RegistryDeleteSubKey( ZwClose(SubKey); - (VOID) ZwFlushKey(Key); - RtlFreeUnicodeString(&Unicode); return STATUS_SUCCESS; @@ -697,8 +695,6 @@ RegistryDeleteValue( RtlFreeUnicodeString(&Unicode); - (VOID) ZwFlushKey(Key); - return STATUS_SUCCESS; fail2: @@ -819,8 +815,6 @@ RegistryUpdateDwordValue( __RegistryFree(Partial); - (VOID) ZwFlushKey(Key); - RtlFreeUnicodeString(&Unicode); return STATUS_SUCCESS; @@ -1151,8 +1145,6 @@ RegistryUpdateBinaryValue( __RegistryFree(Partial); - (VOID) ZwFlushKey(Key); - RtlFreeUnicodeString(&Unicode); return STATUS_SUCCESS; @@ -1443,8 +1435,6 @@ RegistryUpdateSzValue( __RegistryFree(Partial); - (VOID) ZwFlushKey(Key); - RtlFreeUnicodeString(&Unicode); return STATUS_SUCCESS;