[PO]
authorCameron Gutman <aicommander@gmail.com>
Sat, 27 Aug 2011 18:14:46 +0000 (18:14 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 27 Aug 2011 18:14:46 +0000 (18:14 +0000)
- Use the correct access mode for ObReferenceObjectByHandle

svn path=/trunk/; revision=53471

reactos/ntoskrnl/po/events.c

index 2caae54..fb778ff 100644 (file)
@@ -209,7 +209,7 @@ PopAddRemoveSysCapsCallback(IN PVOID NotificationStructure,
                        FileHandle,
                        FILE_READ_DATA,
                        IoFileObjectType,
-                       ExGetPreviousMode(),
+                       KernelMode,
                        (PVOID*)&FileObject,
                        NULL);
                if (!NT_SUCCESS(Status))