It transpires that, on certain versions of Windows, calling ZwFlushKey()
early in boot not only fails (which is not surprising) but also logs
an error event.
This patch reverts commit
690f5474a9c6257fb15bc07b96c56cb64f193f65 to
avoid such noise in the event logs. There is clearly no option but
to trust Windows lazy flush to DTRT.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
ZwClose(SubKey);
- (VOID) ZwFlushKey(Key);
-
RtlFreeUnicodeString(&Unicode);
return STATUS_SUCCESS;
RtlFreeUnicodeString(&Unicode);
- (VOID) ZwFlushKey(Key);
-
return STATUS_SUCCESS;
fail2:
__RegistryFree(Partial);
- (VOID) ZwFlushKey(Key);
-
RtlFreeUnicodeString(&Unicode);
return STATUS_SUCCESS;
__RegistryFree(Partial);
- (VOID) ZwFlushKey(Key);
-
RtlFreeUnicodeString(&Unicode);
return STATUS_SUCCESS;
__RegistryFree(Partial);
- (VOID) ZwFlushKey(Key);
-
RtlFreeUnicodeString(&Unicode);
return STATUS_SUCCESS;