From 0ea37bc5de72a735445582330df8e0d7af47873a Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 21 Aug 2012 23:25:42 +0000 Subject: [PATCH] - Fix DestroyCaret, thanks Thomas... svn path=/trunk/; revision=57125 --- reactos/win32ss/user/ntuser/caret.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/win32ss/user/ntuser/caret.c b/reactos/win32ss/user/ntuser/caret.c index 5c7ecb2db13..e4041c307f0 100644 --- a/reactos/win32ss/user/ntuser/caret.c +++ b/reactos/win32ss/user/ntuser/caret.c @@ -42,15 +42,15 @@ co_IntDestroyCaret(PTHREADINFO Win32Thread) if(!ThreadQueue || !ThreadQueue->CaretInfo) return FALSE; + pWnd = ValidateHwndNoErr(ThreadQueue->CaretInfo->hWnd); co_IntHideCaret(ThreadQueue->CaretInfo); ThreadQueue->CaretInfo->Bitmap = (HBITMAP)0; ThreadQueue->CaretInfo->hWnd = (HWND)0; ThreadQueue->CaretInfo->Size.cx = ThreadQueue->CaretInfo->Size.cy = 0; ThreadQueue->CaretInfo->Showing = 0; ThreadQueue->CaretInfo->Visible = 0; - if (ThreadQueue->CaretInfo->hWnd) + if (pWnd) { - pWnd = UserGetWindowObject(ThreadQueue->CaretInfo->hWnd); IntNotifyWinEvent(EVENT_OBJECT_DESTROY, pWnd, OBJID_CARET, CHILDID_SELF, 0); } return TRUE;