From ba9580261a246b9380240ca0be53c85c41e40847 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 23 May 2015 04:43:32 +0000 Subject: [PATCH] [NtUser] - Since this is hiding the cursor, no window, just return. See CORE-9723. svn path=/trunk/; revision=67856 --- reactos/win32ss/user/ntuser/caret.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/win32ss/user/ntuser/caret.c b/reactos/win32ss/user/ntuser/caret.c index b52177b7cdd..6b8eeb8cdc0 100644 --- a/reactos/win32ss/user/ntuser/caret.c +++ b/reactos/win32ss/user/ntuser/caret.c @@ -23,6 +23,12 @@ co_IntDrawCaret(PWND pWnd, PTHRDCARETINFO CaretInfo) HBITMAP hbmOld; BOOL bDone = FALSE; + if (pWnd == NULL) + { + TRACE("Null Window!\n"); + return; + } + hdc = UserGetDCEx(pWnd, 0, DCX_USESTYLE | DCX_WINDOW); if (!hdc) {