mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[NtUser]
- Fix the transfer of a global cursor while using ATI. See CORE-9436. svn path=/trunk/; revision=66968
This commit is contained in:
parent
da580bb909
commit
774095423b
1 changed files with 8 additions and 1 deletions
|
@ -523,8 +523,15 @@ UserAttachThreadInput(PTHREADINFO ptiFrom, PTHREADINFO ptiTo, BOOL fAttach)
|
|||
|
||||
MsqDestroyMessageQueue(ptiFrom);
|
||||
|
||||
if (CurIcon)
|
||||
{
|
||||
// Could be global. Keep it above the water line!
|
||||
UserReferenceObject(CurIcon);
|
||||
}
|
||||
|
||||
if (CurIcon && UserObjectInDestroy(UserHMGetHandle(CurIcon)))
|
||||
{
|
||||
UserDereferenceObject(CurIcon);
|
||||
CurIcon = NULL;
|
||||
}
|
||||
|
||||
|
@ -533,8 +540,8 @@ UserAttachThreadInput(PTHREADINFO ptiFrom, PTHREADINFO ptiTo, BOOL fAttach)
|
|||
// Pass cursor From if To is null. Pass test_SetCursor parent_id == current pti ID.
|
||||
if (CurIcon && ptiTo->MessageQueue->CursorObject == NULL)
|
||||
{
|
||||
ERR("ptiTo receiving ptiFrom Cursor\n");
|
||||
ptiTo->MessageQueue->CursorObject = CurIcon;
|
||||
UserReferenceObject(CurIcon);
|
||||
}
|
||||
|
||||
ptiFrom->MessageQueue->cThreads++;
|
||||
|
|
Loading…
Reference in a new issue