mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +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;
|
PDESKTOP Desktop;
|
||||||
PTHRDCARETINFO CaretInfo;
|
PTHRDCARETINFO CaretInfo;
|
||||||
|
PTHREADINFO pti;
|
||||||
|
PUSER_MESSAGE_QUEUE ActiveMessageQueue;
|
||||||
HWND hWndCaret;
|
HWND hWndCaret;
|
||||||
PWND WndCaret;
|
PWND WndCaret;
|
||||||
|
|
||||||
ASSERT_REFS_CO(Window);
|
ASSERT_REFS_CO(Window);
|
||||||
|
|
||||||
Desktop = ((PTHREADINFO)PsGetCurrentThread()->Tcb.Win32Thread)->rpdesk;
|
pti = PsGetCurrentThreadWin32Thread();
|
||||||
CaretInfo = ((PUSER_MESSAGE_QUEUE)Desktop->ActiveMessageQueue)->CaretInfo;
|
Desktop = pti->rpdesk;
|
||||||
|
ActiveMessageQueue = Desktop->ActiveMessageQueue;
|
||||||
|
if (!ActiveMessageQueue) return 0;
|
||||||
|
CaretInfo = ActiveMessageQueue->CaretInfo;
|
||||||
hWndCaret = CaretInfo->hWnd;
|
hWndCaret = CaretInfo->hWnd;
|
||||||
|
|
||||||
WndCaret = UserGetWindowObject(hWndCaret);
|
WndCaret = UserGetWindowObject(hWndCaret);
|
||||||
|
|
Loading…
Reference in a new issue