mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[WIN32K]
- Avoid use after free in debug configuration CORE-8661 #resolve svn path=/trunk/; revision=64862
This commit is contained in:
parent
a336377ef4
commit
84c07bcc10
1 changed files with 5 additions and 4 deletions
|
@ -710,14 +710,15 @@ UserSetObjectOwner(PVOID obj, HANDLE_TYPE type, PVOID owner)
|
|||
return;
|
||||
}
|
||||
|
||||
oldppi->UserHandleCount--;
|
||||
IntDereferenceProcessInfo(oldppi);
|
||||
ppi->UserHandleCount++;
|
||||
IntReferenceProcessInfo(ppi);
|
||||
#if DBG
|
||||
oldppi->DbgHandleCount[type]--;
|
||||
ppi->DbgHandleCount[type]++;
|
||||
#endif
|
||||
|
||||
oldppi->UserHandleCount--;
|
||||
IntDereferenceProcessInfo(oldppi);
|
||||
ppi->UserHandleCount++;
|
||||
IntReferenceProcessInfo(ppi);
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
|
|
Loading…
Reference in a new issue