Piotr Caban : ntoskrnl.exe: Store device state in volatile key.
Alexandre Julliard
julliard at winehq.org
Tue Nov 12 16:56:08 CST 2019
Module: wine
Branch: master
Commit: 292b728908563952f56b0585d072f3d7a08e93b2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=292b728908563952f56b0585d072f3d7a08e93b2
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue Nov 12 21:12:20 2019 +0100
ntoskrnl.exe: Store device state in volatile key.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntoskrnl.exe/pnp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntoskrnl.exe/pnp.c b/dlls/ntoskrnl.exe/pnp.c
index 863eee390f..863e1d9d53 100644
--- a/dlls/ntoskrnl.exe/pnp.c
+++ b/dlls/ntoskrnl.exe/pnp.c
@@ -722,7 +722,7 @@ NTSTATUS WINAPI IoSetDeviceInterfaceState( UNICODE_STRING *name, BOOLEAN enable
attr.RootDirectory = iface_key;
RtlInitUnicodeString( &string, controlW );
- ret = NtCreateKey( &control_key, KEY_SET_VALUE, &attr, 0, NULL, 0, NULL );
+ ret = NtCreateKey( &control_key, KEY_SET_VALUE, &attr, 0, NULL, REG_OPTION_VOLATILE, NULL );
NtClose( iface_key );
if (ret)
return ret;
More information about the wine-cvs
mailing list