tinus <o112w8r02@sneakemail.com>

Fix the caret timer warnings
Don't kill the timer unless we added it.

svn path=/trunk/; revision=13721
This commit is contained in:
Gé van Geldorp 2005-02-23 08:14:48 +00:00
parent 756ab632ca
commit 53f1824b0e

View file

@ -240,11 +240,13 @@ NtUserCreateCaret(
return FALSE;
}
IntKillTimer(hWnd, IDCARETTIMER, TRUE);
ThreadQueue = (PUSER_MESSAGE_QUEUE)PsGetWin32Thread()->MessageQueue;
IntHideCaret(ThreadQueue->CaretInfo);
if (ThreadQueue->CaretInfo->Visible)
{
IntKillTimer(hWnd, IDCARETTIMER, TRUE);
IntHideCaret(ThreadQueue->CaretInfo);
}
ThreadQueue->CaretInfo->hWnd = hWnd;
if(hBitmap)