mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -1156,6 +1156,11 @@ NtUserSetWindowsHookEx(
|
||||
ClientInfo->phkCurrent = 0;
|
||||
|
||||
UserDereferenceObject(Hook);
|
||||
|
||||
if (NULL != Thread)
|
||||
{
|
||||
ObDereferenceObject(Thread);
|
||||
}
|
||||
ObDereferenceObject(WinStaObj);
|
||||
|
||||
RETURN( Handle);
|
||||
|
||||
Reference in New Issue
Block a user