Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4ae16e37
Commit
4ae16e37
authored
Oct 02, 2009
by
Jeff Zaroyko
Committed by
Alexandre Julliard
Oct 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: dwIndex flags are mutually exclusive.
parent
5d530fee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
imm.c
dlls/imm32/imm.c
+14
-0
imm32.c
dlls/imm32/tests/imm32.c
+0
-4
No files found.
dlls/imm32/imm.c
View file @
4ae16e37
...
...
@@ -2130,6 +2130,13 @@ BOOL WINAPI ImmSetCompositionStringA(
if
(
!
data
)
return
FALSE
;
if
(
!
(
dwIndex
==
SCS_SETSTR
||
dwIndex
==
SCS_CHANGEATTR
||
dwIndex
==
SCS_CHANGECLAUSE
||
dwIndex
==
SCS_SETRECONVERTSTRING
||
dwIndex
==
SCS_QUERYRECONVERTSTRING
))
return
FALSE
;
if
(
!
is_himc_ime_unicode
(
data
))
return
data
->
immKbd
->
pImeSetCompositionString
(
hIMC
,
dwIndex
,
lpComp
,
dwCompLen
,
lpRead
,
dwReadLen
);
...
...
@@ -2178,6 +2185,13 @@ BOOL WINAPI ImmSetCompositionStringW(
if
(
!
data
)
return
FALSE
;
if
(
!
(
dwIndex
==
SCS_SETSTR
||
dwIndex
==
SCS_CHANGEATTR
||
dwIndex
==
SCS_CHANGECLAUSE
||
dwIndex
==
SCS_SETRECONVERTSTRING
||
dwIndex
==
SCS_QUERYRECONVERTSTRING
))
return
FALSE
;
if
(
is_himc_ime_unicode
(
data
))
return
data
->
immKbd
->
pImeSetCompositionString
(
hIMC
,
dwIndex
,
lpComp
,
dwCompLen
,
lpRead
,
dwReadLen
);
...
...
dlls/imm32/tests/imm32.c
View file @
4ae16e37
...
...
@@ -274,22 +274,18 @@ static void test_ImmSetCompositionString(void)
ret
=
ImmSetCompositionStringW
(
imc
,
SCS_SETSTR
|
SCS_CHANGEATTR
,
NULL
,
0
,
NULL
,
0
);
todo_wine
ok
(
!
ret
,
"ImmSetCompositionStringW() succeeded.
\n
"
);
ret
=
ImmSetCompositionStringW
(
imc
,
SCS_SETSTR
|
SCS_CHANGECLAUSE
,
NULL
,
0
,
NULL
,
0
);
todo_wine
ok
(
!
ret
,
"ImmSetCompositionStringW() succeeded.
\n
"
);
ret
=
ImmSetCompositionStringW
(
imc
,
SCS_CHANGEATTR
|
SCS_CHANGECLAUSE
,
NULL
,
0
,
NULL
,
0
);
todo_wine
ok
(
!
ret
,
"ImmSetCompositionStringW() succeeded.
\n
"
);
ret
=
ImmSetCompositionStringW
(
imc
,
SCS_SETSTR
|
SCS_CHANGEATTR
|
SCS_CHANGECLAUSE
,
NULL
,
0
,
NULL
,
0
);
todo_wine
ok
(
!
ret
,
"ImmSetCompositionStringW() succeeded.
\n
"
);
ImmReleaseContext
(
hwnd
,
imc
);
...
...
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