mirror of
https://github.com/reactos/reactos.git
synced 2024-08-03 01:50:57 +00:00
- NtUserSetWindowsHookEx: Don't leak a thread reference in case we are passed a Thread Id
svn path=/trunk/; revision=38750
This commit is contained in:
parent
5bc4586475
commit
3ca6b9e650
|
@ -1156,6 +1156,11 @@ NtUserSetWindowsHookEx(
|
|||
ClientInfo->phkCurrent = 0;
|
||||
|
||||
UserDereferenceObject(Hook);
|
||||
|
||||
if (NULL != Thread)
|
||||
{
|
||||
ObDereferenceObject(Thread);
|
||||
}
|
||||
ObDereferenceObject(WinStaObj);
|
||||
|
||||
RETURN( Handle);
|
||||
|
|
Loading…
Reference in a new issue