mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:33:07 +00:00
-fix a call to ExGetPreviousMode()
-initialize CurKey in CmiScanKeyList svn path=/trunk/; revision=25559
This commit is contained in:
parent
29043050ac
commit
3863f61aaf
2 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ CmpCreateHandle(PVOID ObjectBody,
|
|||
NewEntry.GrantedAccess = GrantedAccess;
|
||||
|
||||
if ((HandleAttributes & OBJ_KERNEL_HANDLE) &&
|
||||
ExGetPreviousMode == KernelMode)
|
||||
ExGetPreviousMode() == KernelMode)
|
||||
{
|
||||
Process = PsInitialSystemProcess;
|
||||
if (Process != CurrentProcess)
|
||||
|
|
|
@ -972,7 +972,7 @@ CmiScanKeyList(PKEY_OBJECT Parent,
|
|||
ULONG Attributes,
|
||||
PKEY_OBJECT* ReturnedObject)
|
||||
{
|
||||
PKEY_OBJECT CurKey;
|
||||
PKEY_OBJECT CurKey = NULL;
|
||||
ULONG Index;
|
||||
|
||||
DPRINT("Scanning key list for: %wZ (Parent: %wZ)\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue