- Fix crash when there are no system cursors created. See CORE-11899.

svn path=/trunk/; revision=72470
This commit is contained in:
James Tabor 2016-08-26 23:43:19 +00:00
parent 2215ccef67
commit c064e95689

View file

@ -230,7 +230,7 @@ PCURICON_OBJECT
IntSystemSetCursor(PCURICON_OBJECT pcurNew)
{
PCURICON_OBJECT pcurOld = UserSetCursor(pcurNew, FALSE);
UserReferenceObject(pcurNew);
if (pcurNew) UserReferenceObject(pcurNew);
if (pcurOld) UserDereferenceObject(pcurOld);
return pcurOld;
}