[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Sat, 25 Feb 2012 22:27:27 +0000 (22:27 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 25 Feb 2012 22:27:27 +0000 (22:27 +0000)
- Set the SYNCHRONIZE flag in desired access when opening a registry hive for synchronous I/O

svn path=/trunk/; revision=55871

reactos/ntoskrnl/config/cminit.c

index e0fc312..9efde0f 100644 (file)
@@ -334,7 +334,7 @@ CmpOpenHiveFiles(IN PCUNICODE_STRING BaseName,
 
     /* Now create the file */
     Status = ZwCreateFile(Primary,
-                          DesiredAccess,
+                          DesiredAccess | SYNCHRONIZE,
                           &ObjectAttributes,
                           &IoStatusBlock,
                           NULL,