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