mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
added test arg in NtFlushKey
svn path=/trunk/; revision=1441
This commit is contained in:
parent
45fcd58321
commit
55feb47d30
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: registry.c,v 1.51 2000/11/27 14:54:28 jean Exp $
|
/* $Id: registry.c,v 1.52 2000/12/01 12:44:15 jean Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1051,12 +1051,17 @@ NtFlushKey (
|
||||||
int i;
|
int i;
|
||||||
LARGE_INTEGER fileOffset;
|
LARGE_INTEGER fileOffset;
|
||||||
DWORD * pEntDword;
|
DWORD * pEntDword;
|
||||||
|
/* Verify that the handle is valid and is a registry key */
|
||||||
Status = ObReferenceObjectByHandle(KeyHandle,
|
Status = ObReferenceObjectByHandle(KeyHandle,
|
||||||
KEY_QUERY_VALUE,
|
KEY_QUERY_VALUE,
|
||||||
CmiKeyType,
|
CmiKeyType,
|
||||||
UserMode,
|
UserMode,
|
||||||
(PVOID *)&KeyObject,
|
(PVOID *)&KeyObject,
|
||||||
NULL);
|
NULL);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
RegistryFile = KeyObject->RegistryFile;
|
RegistryFile = KeyObject->RegistryFile;
|
||||||
// KeAcquireSpinLock(&RegistryFile->RegLock, &OldIrql);
|
// KeAcquireSpinLock(&RegistryFile->RegLock, &OldIrql);
|
||||||
/* then write changed blocks in .log */
|
/* then write changed blocks in .log */
|
||||||
|
|
Loading…
Reference in a new issue