- De-reference global cursor. See CORE-8305.

svn path=/trunk/; revision=67937
This commit is contained in:
James Tabor 2015-05-27 22:13:03 +00:00
parent f4494b1b46
commit b61240a9fd

View file

@ -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;
} }