Author: hpoussin
Date: Sun Sep 30 17:11:36 2007
New Revision: 29307
URL:
http://svn.reactos.org/svn/reactos?rev=29307&view=rev
Log:
Reference file handle according to previous mode
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c (original)
+++ trunk/reactos/ntoskrnl/mm/section.c Sun Sep 30 17:11:36 2007
@@ -2421,7 +2421,7 @@
Status = ObReferenceObjectByHandle(FileHandle,
FileAccess,
IoFileObjectType,
- UserMode,
+ ExGetPreviousMode(),
(PVOID*)(PVOID)&FileObject,
NULL);
if (!NT_SUCCESS(Status))