mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:03:12 +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;
|
NewEntry.GrantedAccess = GrantedAccess;
|
||||||
|
|
||||||
if ((HandleAttributes & OBJ_KERNEL_HANDLE) &&
|
if ((HandleAttributes & OBJ_KERNEL_HANDLE) &&
|
||||||
ExGetPreviousMode == KernelMode)
|
ExGetPreviousMode() == KernelMode)
|
||||||
{
|
{
|
||||||
Process = PsInitialSystemProcess;
|
Process = PsInitialSystemProcess;
|
||||||
if (Process != CurrentProcess)
|
if (Process != CurrentProcess)
|
||||||
|
|
|
@ -972,7 +972,7 @@ CmiScanKeyList(PKEY_OBJECT Parent,
|
||||||
ULONG Attributes,
|
ULONG Attributes,
|
||||||
PKEY_OBJECT* ReturnedObject)
|
PKEY_OBJECT* ReturnedObject)
|
||||||
{
|
{
|
||||||
PKEY_OBJECT CurKey;
|
PKEY_OBJECT CurKey = NULL;
|
||||||
ULONG Index;
|
ULONG Index;
|
||||||
|
|
||||||
DPRINT("Scanning key list for: %wZ (Parent: %wZ)\n",
|
DPRINT("Scanning key list for: %wZ (Parent: %wZ)\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue