mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
[NtUser]
- Fix crash when there are no system cursors created. See CORE-11899. svn path=/trunk/; revision=72470
This commit is contained in:
parent
2215ccef67
commit
c064e95689
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue