ntdll: Use FILE_OPEN instead of OPEN_EXISTING when calling NtCreateFile.
This commit is contained in:
parent
2f9c9b31ae
commit
9c58884161
|
@ -575,7 +575,7 @@ NTSTATUS WINAPI NtLoadKey( const OBJECT_ATTRIBUTES *attr, OBJECT_ATTRIBUTES *fil
|
|||
TRACE("(%p,%p)\n", attr, file);
|
||||
|
||||
ret = NtCreateFile(&hive, GENERIC_READ, file, &io, NULL, FILE_ATTRIBUTE_NORMAL, 0,
|
||||
OPEN_EXISTING, 0, NULL, 0);
|
||||
FILE_OPEN, 0, NULL, 0);
|
||||
if (ret) return ret;
|
||||
|
||||
SERVER_START_REQ( load_registry )
|
||||
|
|
Loading…
Reference in New Issue