[ros-diffs] [tkreuzer] 38121: Fix usage of PNTSTATUS instead of NTSTATUS in NT_SUCCESS, which could result in IopCheckVpbMounted returning a wrong status code

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Dec 16 19:12:13 CET 2008


Author: tkreuzer
Date: Tue Dec 16 12:12:13 2008
New Revision: 38121

URL: http://svn.reactos.org/svn/reactos?rev=38121&view=rev
Log:
Fix usage of PNTSTATUS instead of NTSTATUS in NT_SUCCESS, which could result in IopCheckVpbMounted returning a wrong status code

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/volume.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/volume.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/volume.c?rev=38121&r1=38120&r2=38121&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/volume.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/volume.c [iso-8859-1] Tue Dec 16 12:12:13 2008
@@ -70,7 +70,7 @@
             IopDereferenceDeviceObject(DeviceObject, FALSE);
 
             /* Check if it was a total failure */
-            if (!NT_SUCCESS(Status)) return NULL;
+            if (!NT_SUCCESS(*Status)) return NULL;
 
             /* Otherwise we were alerted */
             *Status = STATUS_WRONG_VOLUME;



More information about the Ros-diffs mailing list