mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
parent
eb902e5bee
commit
0f1e19a7b6
1 changed files with 3 additions and 5 deletions
|
@ -1257,7 +1257,6 @@ VOID UserFreeInputContext(PVOID Object)
|
||||||
BOOLEAN UserDestroyInputContext(PVOID Object)
|
BOOLEAN UserDestroyInputContext(PVOID Object)
|
||||||
{
|
{
|
||||||
PIMC pIMC = Object;
|
PIMC pIMC = Object;
|
||||||
|
|
||||||
if (!pIMC || !UserMarkObjectDestroy(pIMC))
|
if (!pIMC || !UserMarkObjectDestroy(pIMC))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
@ -1265,17 +1264,16 @@ BOOLEAN UserDestroyInputContext(PVOID Object)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Win: DestroyInputContext
|
// Win: DestroyInputContext
|
||||||
BOOLEAN IntDestroyInputContext(PVOID Object)
|
BOOL IntDestroyInputContext(PIMC pIMC)
|
||||||
{
|
{
|
||||||
PIMC pIMC = Object;
|
HIMC hIMC = UserHMGetHandle(pIMC);
|
||||||
HIMC hIMC = pIMC->head.h;
|
|
||||||
PTHREADINFO pti = pIMC->head.pti;
|
PTHREADINFO pti = pIMC->head.pti;
|
||||||
PWND pwndChild;
|
PWND pwndChild;
|
||||||
PWINDOWLIST pwl;
|
PWINDOWLIST pwl;
|
||||||
HWND *phwnd;
|
HWND *phwnd;
|
||||||
PWND pWnd;
|
PWND pWnd;
|
||||||
|
|
||||||
if (pIMC->head.pti != gptiCurrent)
|
if (pti != gptiCurrent)
|
||||||
{
|
{
|
||||||
EngSetLastError(ERROR_ACCESS_DENIED);
|
EngSetLastError(ERROR_ACCESS_DENIED);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue