Dereference process object.
authorJames Tabor <james.tabor@reactos.org>
Tue, 1 Mar 2005 06:34:16 +0000 (06:34 +0000)
committerJames Tabor <james.tabor@reactos.org>
Tue, 1 Mar 2005 06:34:16 +0000 (06:34 +0000)
svn path=/trunk/; revision=13788

reactos/ntoskrnl/ex/sysinfo.c

index 079005d..eb50a36 100644 (file)
@@ -854,8 +854,12 @@ QSI_DEF(SystemHandleInformation)
 
            if (curSize > Size)
              {
-               *ReqSize = curSize;
                DPRINT1("SystemHandleInformation 2\n");
+               *ReqSize = curSize;
+               if (pr != NULL)
+                {
+                   ObDereferenceObject(pr);
+                }
                return (STATUS_INFO_LENGTH_MISMATCH);
              }