Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f4f589c4
Commit
f4f589c4
authored
Jul 08, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Don't allow disabling other thread's IME by thread ID.
parent
0e763f72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
imm.c
dlls/imm32/imm.c
+2
-1
imm32.c
dlls/imm32/tests/imm32.c
+0
-2
No files found.
dlls/imm32/imm.c
View file @
f4f589c4
...
...
@@ -1022,7 +1022,7 @@ BOOL WINAPI ImmDisableIME(DWORD idThread)
DestroyWindow
(
to_destroy
);
}
}
else
else
if
(
!
idThread
||
idThread
==
GetCurrentThreadId
())
{
thread_data
=
IMM_GetThreadData
(
NULL
,
idThread
);
if
(
!
thread_data
)
return
FALSE
;
...
...
@@ -1033,6 +1033,7 @@ BOOL WINAPI ImmDisableIME(DWORD idThread)
if
(
to_destroy
)
DestroyWindow
(
to_destroy
);
}
else
return
FALSE
;
return
TRUE
;
}
...
...
dlls/imm32/tests/imm32.c
View file @
f4f589c4
...
...
@@ -2377,7 +2377,6 @@ static DWORD WINAPI check_not_disabled_ime_thread(void *arg)
hwnd
=
CreateWindowA
(
"static"
,
"static"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
ok
(
hwnd
!=
NULL
,
"CreateWindow failed
\n
"
);
def
=
ImmGetDefaultIMEWnd
(
hwnd
);
todo_wine
ok
(
def
!=
NULL
,
"ImmGetDefaultIMEWnd returned %p
\n
"
,
def
);
return
0
;
}
...
...
@@ -2403,7 +2402,6 @@ static void test_ImmDisableIME(void)
thread
=
CreateThread
(
NULL
,
0
,
check_not_disabled_ime_thread
,
event
,
0
,
&
tid
);
ok
(
thread
!=
NULL
,
"CreateThread failed
\n
"
);
r
=
ImmDisableIME
(
tid
);
todo_wine
ok
(
!
r
,
"ImmDisableIME(tid) succeeded
\n
"
);
SetEvent
(
event
);
WaitForSingleObject
(
thread
,
INFINITE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment