Don't access the PROCESSINFO after freeing it.
svn path=/trunk/; revision=57968
*pppi = ppiCurrent->ppiNext;
TRACE_CH(UserProcess,"Freeing ppi 0x%p\n", ppiCurrent);
*pppi = ppiCurrent->ppiNext;
TRACE_CH(UserProcess,"Freeing ppi 0x%p\n", ppiCurrent);
-
- /* Ftee the PROCESSINFO */
- PsSetProcessWin32Process(Process, NULL);
- ExFreePoolWithTag(ppiCurrent, USERTAG_PROCESSINFO);
#if DBG
if (DBG_IS_CHANNEL_ENABLED(ppiCurrent, DbgChUserObj, WARN_LEVEL))
{
DbgUserDumpHandleTable();
}
#endif
#if DBG
if (DBG_IS_CHANNEL_ENABLED(ppiCurrent, DbgChUserObj, WARN_LEVEL))
{
DbgUserDumpHandleTable();
}
#endif
+
+ /* Free the PROCESSINFO */
+ PsSetProcessWin32Process(Process, NULL);
+ ExFreePoolWithTag(ppiCurrent, USERTAG_PROCESSINFO);
}
RETURN( STATUS_SUCCESS);
}
RETURN( STATUS_SUCCESS);