Author: jimtabor
Date: Fri Aug 26 23:43:19 2016
New Revision: 72470
URL:
http://svn.reactos.org/svn/reactos?rev=72470&view=rev
Log:
[NtUser]
- Fix crash when there are no system cursors created. See CORE-11899.
Modified:
trunk/reactos/win32ss/user/ntuser/cursoricon.c
Modified: trunk/reactos/win32ss/user/ntuser/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/cursor…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/cursoricon.c [iso-8859-1] Fri Aug 26 23:43:19 2016
@@ -230,7 +230,7 @@
IntSystemSetCursor(PCURICON_OBJECT pcurNew)
{
PCURICON_OBJECT pcurOld = UserSetCursor(pcurNew, FALSE);
- UserReferenceObject(pcurNew);
+ if (pcurNew) UserReferenceObject(pcurNew);
if (pcurOld) UserDereferenceObject(pcurOld);
return pcurOld;
}