Author: cwittich
Date: Sun Jan 21 20:32:11 2007
New Revision: 25559
URL:
http://svn.reactos.org/svn/reactos?rev=25559&view=rev
Log:
-fix a call to ExGetPreviousMode()
-initialize CurKey in CmiScanKeyList
Modified:
trunk/reactos/ntoskrnl/cm/ntfunc.c
trunk/reactos/ntoskrnl/cm/regobj.c
Modified: trunk/reactos/ntoskrnl/cm/ntfunc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/ntfunc.c?rev=2…
==============================================================================
--- trunk/reactos/ntoskrnl/cm/ntfunc.c (original)
+++ trunk/reactos/ntoskrnl/cm/ntfunc.c Sun Jan 21 20:32:11 2007
@@ -88,7 +88,7 @@
NewEntry.GrantedAccess = GrantedAccess;
if ((HandleAttributes & OBJ_KERNEL_HANDLE) &&
- ExGetPreviousMode == KernelMode)
+ ExGetPreviousMode() == KernelMode)
{
Process = PsInitialSystemProcess;
if (Process != CurrentProcess)
Modified: trunk/reactos/ntoskrnl/cm/regobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/regobj.c?rev=2…
==============================================================================
--- trunk/reactos/ntoskrnl/cm/regobj.c (original)
+++ trunk/reactos/ntoskrnl/cm/regobj.c Sun Jan 21 20:32:11 2007
@@ -972,7 +972,7 @@
ULONG Attributes,
PKEY_OBJECT* ReturnedObject)
{
- PKEY_OBJECT CurKey;
+ PKEY_OBJECT CurKey = NULL;
ULONG Index;
DPRINT("Scanning key list for: %wZ (Parent: %wZ)\n",