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
5911f36c
Commit
5911f36c
authored
Jun 12, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Avoid resizing IMCC to zero-size buffer.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55027
parent
b012bed6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ime.c
dlls/imm32/ime.c
+4
-2
No files found.
dlls/imm32/ime.c
View file @
5911f36c
...
...
@@ -366,7 +366,9 @@ static UINT ime_set_comp_string( HIMC himc, LPARAM lparam )
if
(
!
(
ctx
=
ImmLockIMC
(
himc
)))
return
0
;
count
=
ImeToAsciiEx
(
VK_PROCESSKEY
,
lparam
,
NULL
,
&
buffer
.
list
,
0
,
himc
);
if
(
count
>=
buffer
.
uMsgCount
)
if
(
!
count
)
TRACE
(
"ImeToAsciiEx returned no messages
\n
"
);
else
if
(
count
>=
buffer
.
uMsgCount
)
WARN
(
"ImeToAsciiEx returned %#x messages
\n
"
,
count
);
else
if
(
!
(
himcc
=
ImmReSizeIMCC
(
ctx
->
hMsgBuf
,
(
ctx
->
dwNumMsgBuf
+
count
)
*
sizeof
(
*
msgs
)
)))
WARN
(
"Failed to resize input context message buffer
\n
"
);
...
...
@@ -534,7 +536,7 @@ UINT WINAPI ImeToAsciiEx( UINT vkey, UINT vsc, BYTE *state, TRANSMSGLIST *msgs,
if
(
!
(
ctx
=
ImmLockIMC
(
himc
)))
return
0
;
if
(
!
(
compstr
=
ImmLockIMCC
(
ctx
->
hCompStr
)))
goto
done
;
size
=
compstr
->
dwSize
;
size
=
max
(
compstr
->
dwSize
,
sizeof
(
COMPOSITIONSTRING
)
)
;
do
{
...
...
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