mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
- Fix DestroyCaret, thanks Thomas...
svn path=/trunk/; revision=57125
This commit is contained in:
parent
de317c1814
commit
0ea37bc5de
1 changed files with 2 additions and 2 deletions
|
@ -42,15 +42,15 @@ co_IntDestroyCaret(PTHREADINFO Win32Thread)
|
||||||
if(!ThreadQueue || !ThreadQueue->CaretInfo)
|
if(!ThreadQueue || !ThreadQueue->CaretInfo)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
pWnd = ValidateHwndNoErr(ThreadQueue->CaretInfo->hWnd);
|
||||||
co_IntHideCaret(ThreadQueue->CaretInfo);
|
co_IntHideCaret(ThreadQueue->CaretInfo);
|
||||||
ThreadQueue->CaretInfo->Bitmap = (HBITMAP)0;
|
ThreadQueue->CaretInfo->Bitmap = (HBITMAP)0;
|
||||||
ThreadQueue->CaretInfo->hWnd = (HWND)0;
|
ThreadQueue->CaretInfo->hWnd = (HWND)0;
|
||||||
ThreadQueue->CaretInfo->Size.cx = ThreadQueue->CaretInfo->Size.cy = 0;
|
ThreadQueue->CaretInfo->Size.cx = ThreadQueue->CaretInfo->Size.cy = 0;
|
||||||
ThreadQueue->CaretInfo->Showing = 0;
|
ThreadQueue->CaretInfo->Showing = 0;
|
||||||
ThreadQueue->CaretInfo->Visible = 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);
|
IntNotifyWinEvent(EVENT_OBJECT_DESTROY, pWnd, OBJID_CARET, CHILDID_SELF, 0);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue