Author: jimtabor
Date: Thu Dec 18 22:38:40 2014
New Revision: 65743
URL:
http://svn.reactos.org/svn/reactos?rev=65743&view=rev
Log:
- Fix a crash while moving minimized MDI window in ConTEXT.
Modified:
trunk/reactos/win32ss/user/ntuser/defwnd.c
Modified: trunk/reactos/win32ss/user/ntuser/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/defwnd…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/defwnd.c [iso-8859-1] Thu Dec 18 22:38:40 2014
@@ -599,7 +599,7 @@
* so we must unreference whatever cursor was current at the time we restored the
old one.
* Maybe it is DragCursor, but maybe it is another one and DragCursor got already
freed.
*/
- UserDereferenceObject(OldCursor);
+ if (OldCursor) UserDereferenceObject(OldCursor);
#else
IntDestroyCursor( hDragCursor, FALSE );
#endif