Author: jimtabor
Date: Tue Aug 21 23:25:42 2012
New Revision: 57125
URL:
http://svn.reactos.org/svn/reactos?rev=57125&view=rev
Log:
- Fix DestroyCaret, thanks Thomas...
Modified:
trunk/reactos/win32ss/user/ntuser/caret.c
Modified: trunk/reactos/win32ss/user/ntuser/caret.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/caret.…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/caret.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/caret.c [iso-8859-1] Tue Aug 21 23:25:42 2012
@@ -42,15 +42,15 @@
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)
- {
- pWnd = UserGetWindowObject(ThreadQueue->CaretInfo->hWnd);
+ if (pWnd)
+ {
IntNotifyWinEvent(EVENT_OBJECT_DESTROY, pWnd, OBJID_CARET, CHILDID_SELF, 0);
}
return TRUE;