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
9bcc90fb
Commit
9bcc90fb
authored
Feb 03, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Disable cross thread access for ImmSetCompositionString().
parent
97b836a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
imm.c
dlls/imm32/imm.c
+6
-0
imm32.c
dlls/imm32/tests/imm32.c
+8
-0
No files found.
dlls/imm32/imm.c
View file @
9bcc90fb
...
...
@@ -2377,6 +2377,9 @@ BOOL WINAPI ImmSetCompositionStringA(
if
(
!
data
)
return
FALSE
;
if
(
IMM_IsCrossThreadAccess
(
NULL
,
hIMC
))
return
FALSE
;
if
(
!
(
dwIndex
==
SCS_SETSTR
||
dwIndex
==
SCS_CHANGEATTR
||
dwIndex
==
SCS_CHANGECLAUSE
||
...
...
@@ -2432,6 +2435,9 @@ BOOL WINAPI ImmSetCompositionStringW(
if
(
!
data
)
return
FALSE
;
if
(
IMM_IsCrossThreadAccess
(
NULL
,
hIMC
))
return
FALSE
;
if
(
!
(
dwIndex
==
SCS_SETSTR
||
dwIndex
==
SCS_CHANGEATTR
||
dwIndex
==
SCS_CHANGECLAUSE
||
...
...
dlls/imm32/tests/imm32.c
View file @
9bcc90fb
...
...
@@ -984,6 +984,14 @@ static void test_ImmThreads(void)
rc
=
ImmSetCompositionFontA
(
threadinfo
.
u_himc
,
&
lf
);
ok
(
rc
==
0
,
"ImmSetCompositionFont should fail
\n
"
);
/* CompositionString */
rc
=
ImmSetCompositionStringA
(
himc
,
SCS_SETSTR
,
"a"
,
2
,
NULL
,
0
);
ok
(
rc
,
"failed.
\n
"
);
rc
=
ImmSetCompositionStringA
(
otherHimc
,
SCS_SETSTR
,
"a"
,
2
,
NULL
,
0
);
ok
(
!
rc
,
"should fail.
\n
"
);
rc
=
ImmSetCompositionStringA
(
threadinfo
.
u_himc
,
SCS_SETSTR
,
"a"
,
2
,
NULL
,
0
);
ok
(
!
rc
,
"should fail.
\n
"
);
/* CompositionWindow */
rc
=
ImmSetCompositionWindow
(
himc
,
&
cf
);
ok
(
rc
!=
0
,
"ImmSetCompositionWindow failed
\n
"
);
...
...
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