- Fix DestroyCaret, thanks Thomas...

svn path=/trunk/; revision=57125
This commit is contained in:
James Tabor 2012-08-21 23:25:42 +00:00
parent de317c1814
commit 0ea37bc5de

View file

@ -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;