mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
oldppi->UserHandleCount--;
|
|
||||||
IntDereferenceProcessInfo(oldppi);
|
|
||||||
ppi->UserHandleCount++;
|
|
||||||
IntReferenceProcessInfo(ppi);
|
|
||||||
#if DBG
|
#if DBG
|
||||||
oldppi->DbgHandleCount[type]--;
|
oldppi->DbgHandleCount[type]--;
|
||||||
ppi->DbgHandleCount[type]++;
|
ppi->DbgHandleCount[type]++;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
oldppi->UserHandleCount--;
|
||||||
|
IntDereferenceProcessInfo(oldppi);
|
||||||
|
ppi->UserHandleCount++;
|
||||||
|
IntReferenceProcessInfo(ppi);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
|
|
Loading…
Reference in a new issue