-fix a call to ExGetPreviousMode()

-initialize CurKey in CmiScanKeyList

svn path=/trunk/; revision=25559
This commit is contained in:
Christoph von Wittich 2007-01-21 17:32:11 +00:00
parent 29043050ac
commit 3863f61aaf
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ CmpCreateHandle(PVOID ObjectBody,
NewEntry.GrantedAccess = GrantedAccess;
if ((HandleAttributes & OBJ_KERNEL_HANDLE) &&
ExGetPreviousMode == KernelMode)
ExGetPreviousMode() == KernelMode)
{
Process = PsInitialSystemProcess;
if (Process != CurrentProcess)

View file

@ -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",