mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
dereference processes when enumerating them was cancelled. Accidently removed that.
svn path=/trunk/; revision=14060
This commit is contained in:
parent
437f357dd1
commit
666973de7f
1 changed files with 15 additions and 0 deletions
|
@ -676,6 +676,11 @@ QSI_DEF(SystemProcessInformation)
|
|||
else
|
||||
pCur = pCur + curSize + inLen;
|
||||
} while ((pr != syspr) && (pr != NULL));
|
||||
|
||||
if(pr != NULL)
|
||||
{
|
||||
ObDereferenceObject(pr);
|
||||
}
|
||||
|
||||
*ReqSize = ovlSize;
|
||||
return (STATUS_SUCCESS);
|
||||
|
@ -859,6 +864,11 @@ QSI_DEF(SystemHandleInformation)
|
|||
if ((pr == syspr) || (pr == NULL))
|
||||
break;
|
||||
} while ((pr != syspr) && (pr != NULL));
|
||||
|
||||
if(pr != NULL)
|
||||
{
|
||||
ObDereferenceObject(pr);
|
||||
}
|
||||
|
||||
DPRINT("SystemHandleInformation 2\n");
|
||||
|
||||
|
@ -899,6 +909,11 @@ QSI_DEF(SystemHandleInformation)
|
|||
break;
|
||||
} while ((pr != syspr) && (pr != NULL));
|
||||
|
||||
if(pr != NULL)
|
||||
{
|
||||
ObDereferenceObject(pr);
|
||||
}
|
||||
|
||||
DPRINT("SystemHandleInformation 4\n");
|
||||
return (STATUS_SUCCESS);
|
||||
|
||||
|
|
Loading…
Reference in a new issue