mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[Win32k]
- Fix crash with standalone win test_hind_message test. svn path=/trunk/; revision=50548
This commit is contained in:
parent
ac10b13f14
commit
e459daf68f
1 changed files with 7 additions and 2 deletions
|
@ -692,13 +692,18 @@ co_IntFixCaret(PWND Window, RECTL *lprc, UINT flags)
|
|||
{
|
||||
PDESKTOP Desktop;
|
||||
PTHRDCARETINFO CaretInfo;
|
||||
PTHREADINFO pti;
|
||||
PUSER_MESSAGE_QUEUE ActiveMessageQueue;
|
||||
HWND hWndCaret;
|
||||
PWND WndCaret;
|
||||
|
||||
ASSERT_REFS_CO(Window);
|
||||
|
||||
Desktop = ((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->rpdesk;
|
||||
CaretInfo = ((PUSER_MESSAGE_QUEUE)Desktop->ActiveMessageQueue)->CaretInfo;
|
||||
pti = PsGetCurrentThreadWin32Thread();
|
||||
Desktop = pti->rpdesk;
|
||||
ActiveMessageQueue = Desktop->ActiveMessageQueue;
|
||||
if (!ActiveMessageQueue) return 0;
|
||||
CaretInfo = ActiveMessageQueue->CaretInfo;
|
||||
hWndCaret = CaretInfo->hWnd;
|
||||
|
||||
WndCaret = UserGetWindowObject(hWndCaret);
|
||||
|
|
Loading…
Reference in a new issue