From 9bc240e8326237b369936a4eb820b61fccecd42c Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 18 Dec 2014 22:38:40 +0000 Subject: [PATCH] - Fix a crash while moving minimized MDI window in ConTEXT. svn path=/trunk/; revision=65743 --- reactos/win32ss/user/ntuser/defwnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/user/ntuser/defwnd.c b/reactos/win32ss/user/ntuser/defwnd.c index 92334de2c95..c8d38d8e1c4 100644 --- a/reactos/win32ss/user/ntuser/defwnd.c +++ b/reactos/win32ss/user/ntuser/defwnd.c @@ -599,7 +599,7 @@ DefWndDoSizeMove(PWND pwnd, WORD wParam) * 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