mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 22:02:18 +00:00
[NtUser]
- De-reference global cursor. See CORE-8305. svn path=/trunk/; revision=67937
This commit is contained in:
parent
f4494b1b46
commit
b61240a9fd
|
@ -1077,6 +1077,12 @@ NtUserSetCursor(
|
|||
if (pcurOld->CURSORF_flags & CURSORF_GLOBAL)
|
||||
{
|
||||
TRACE("Returning Global Cursor hcur %p\n",hOldCursor);
|
||||
|
||||
if (pcurOld->head.cLockObj > 2) // Throttle down to 2.
|
||||
{
|
||||
UserDereferenceObject(pcurOld);
|
||||
}
|
||||
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue