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
b8dc1e7c
Commit
b8dc1e7c
authored
Nov 15, 2017
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Nov 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Keep the result string in the IME UI window procedure.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3955ce1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
imm32.c
dlls/imm32/tests/imm32.c
+0
-1
ime.c
dlls/winex11.drv/ime.c
+5
-6
No files found.
dlls/imm32/tests/imm32.c
View file @
b8dc1e7c
...
...
@@ -380,7 +380,6 @@ static LRESULT WINAPI test_ime_wnd_proc(HWND hWnd, UINT msg, WPARAM wParam, LPAR
imc
=
ImmGetContext
(
hWnd
);
size
=
ImmGetCompositionStringW
(
imc
,
GCS_RESULTSTR
,
wstring
,
sizeof
(
wstring
));
todo_wine
ok
(
size
>
0
,
"ImmGetCompositionString(GCS_RESULTSTR) is %d
\n
"
,
size
);
ImmReleaseContext
(
hwnd
,
imc
);
...
...
dlls/winex11.drv/ime.c
View file @
b8dc1e7c
...
...
@@ -906,6 +906,11 @@ BOOL WINAPI ImeSetCompositionString(HIMC hIMC, DWORD dwIndex, LPCVOID lpComp,
myPrivate
->
bInComposition
=
TRUE
;
}
/* clear existing result */
newCompStr
=
updateResultStr
(
lpIMC
->
hCompStr
,
NULL
,
0
);
ImmDestroyIMCC
(
lpIMC
->
hCompStr
);
lpIMC
->
hCompStr
=
newCompStr
;
flags
=
GCS_COMPSTR
;
if
(
dwCompLen
&&
lpComp
)
...
...
@@ -1256,7 +1261,6 @@ static void DefaultIMEComposition(HIMC hIMC, HWND hwnd, LPARAM lParam)
LPCOMPOSITIONSTRING
compstr
;
LPBYTE
compdata
;
LPWSTR
ResultStr
;
HIMCC
newCompStr
;
LPINPUTCONTEXT
lpIMC
;
lpIMC
=
LockRealIMC
(
hIMC
);
...
...
@@ -1269,11 +1273,6 @@ static void DefaultIMEComposition(HIMC hIMC, HWND hwnd, LPARAM lParam)
ResultStr
=
(
LPWSTR
)(
compdata
+
compstr
->
dwResultStrOffset
);
GenerateIMECHARMessages
(
hIMC
,
ResultStr
,
compstr
->
dwResultStrLen
);
ImmUnlockIMCC
(
lpIMC
->
hCompStr
);
/* clear the buffer */
newCompStr
=
updateResultStr
(
lpIMC
->
hCompStr
,
NULL
,
0
);
ImmDestroyIMCC
(
lpIMC
->
hCompStr
);
lpIMC
->
hCompStr
=
newCompStr
;
UnlockRealIMC
(
hIMC
);
}
else
...
...
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