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
a357a29a
Commit
a357a29a
authored
Jun 02, 2016
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Correct sizes in COMPOSITIONSTRING structure when updating fields.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
877a628a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
ime.c
dlls/winex11.drv/ime.c
+10
-6
No files found.
dlls/winex11.drv/ime.c
View file @
a357a29a
...
@@ -217,11 +217,11 @@ static HIMCC updateCompStr(HIMCC old, LPCWSTR compstr, DWORD len)
...
@@ -217,11 +217,11 @@ static HIMCC updateCompStr(HIMCC old, LPCWSTR compstr, DWORD len)
{
{
needed_size
+=
lpcs
->
dwCompReadAttrLen
;
needed_size
+=
lpcs
->
dwCompReadAttrLen
;
needed_size
+=
lpcs
->
dwCompReadClauseLen
;
needed_size
+=
lpcs
->
dwCompReadClauseLen
;
needed_size
+=
lpcs
->
dwCompReadStrLen
*
sizeof
(
DWORD
);
needed_size
+=
lpcs
->
dwCompReadStrLen
*
sizeof
(
WCHAR
);
needed_size
+=
lpcs
->
dwResultReadClauseLen
;
needed_size
+=
lpcs
->
dwResultReadClauseLen
;
needed_size
+=
lpcs
->
dwResultReadStrLen
*
sizeof
(
DWORD
);
needed_size
+=
lpcs
->
dwResultReadStrLen
*
sizeof
(
WCHAR
);
needed_size
+=
lpcs
->
dwResultClauseLen
;
needed_size
+=
lpcs
->
dwResultClauseLen
;
needed_size
+=
lpcs
->
dwResultStrLen
*
sizeof
(
DWORD
);
needed_size
+=
lpcs
->
dwResultStrLen
*
sizeof
(
WCHAR
);
needed_size
+=
lpcs
->
dwPrivateSize
;
needed_size
+=
lpcs
->
dwPrivateSize
;
}
}
rc
=
ImmCreateIMCC
(
needed_size
);
rc
=
ImmCreateIMCC
(
needed_size
);
...
@@ -304,6 +304,8 @@ static HIMCC updateCompStr(HIMCC old, LPCWSTR compstr, DWORD len)
...
@@ -304,6 +304,8 @@ static HIMCC updateCompStr(HIMCC old, LPCWSTR compstr, DWORD len)
*
(
DWORD
*
)(
&
newdata
[
current_offset
])
=
len
;
*
(
DWORD
*
)(
&
newdata
[
current_offset
])
=
len
;
current_offset
+=
sizeof
(
DWORD
);
current_offset
+=
sizeof
(
DWORD
);
}
}
else
new_one
->
dwCompClauseLen
=
0
;
/* CompStr */
/* CompStr */
new_one
->
dwCompStrLen
=
len
;
new_one
->
dwCompStrLen
=
len
;
...
@@ -359,12 +361,12 @@ static HIMCC updateResultStr(HIMCC old, LPWSTR resultstr, DWORD len)
...
@@ -359,12 +361,12 @@ static HIMCC updateResultStr(HIMCC old, LPWSTR resultstr, DWORD len)
{
{
needed_size
+=
lpcs
->
dwCompReadAttrLen
;
needed_size
+=
lpcs
->
dwCompReadAttrLen
;
needed_size
+=
lpcs
->
dwCompReadClauseLen
;
needed_size
+=
lpcs
->
dwCompReadClauseLen
;
needed_size
+=
lpcs
->
dwCompReadStrLen
*
sizeof
(
DWORD
);
needed_size
+=
lpcs
->
dwCompReadStrLen
*
sizeof
(
WCHAR
);
needed_size
+=
lpcs
->
dwCompAttrLen
;
needed_size
+=
lpcs
->
dwCompAttrLen
;
needed_size
+=
lpcs
->
dwCompClauseLen
;
needed_size
+=
lpcs
->
dwCompClauseLen
;
needed_size
+=
lpcs
->
dwCompStrLen
*
sizeof
(
DWORD
);
needed_size
+=
lpcs
->
dwCompStrLen
*
sizeof
(
WCHAR
);
needed_size
+=
lpcs
->
dwResultReadClauseLen
;
needed_size
+=
lpcs
->
dwResultReadClauseLen
;
needed_size
+=
lpcs
->
dwResultReadStrLen
*
sizeof
(
DWORD
);
needed_size
+=
lpcs
->
dwResultReadStrLen
*
sizeof
(
WCHAR
);
needed_size
+=
lpcs
->
dwPrivateSize
;
needed_size
+=
lpcs
->
dwPrivateSize
;
}
}
rc
=
ImmCreateIMCC
(
needed_size
);
rc
=
ImmCreateIMCC
(
needed_size
);
...
@@ -446,6 +448,8 @@ static HIMCC updateResultStr(HIMCC old, LPWSTR resultstr, DWORD len)
...
@@ -446,6 +448,8 @@ static HIMCC updateResultStr(HIMCC old, LPWSTR resultstr, DWORD len)
*
(
DWORD
*
)(
&
newdata
[
current_offset
])
=
len
;
*
(
DWORD
*
)(
&
newdata
[
current_offset
])
=
len
;
current_offset
+=
sizeof
(
DWORD
);
current_offset
+=
sizeof
(
DWORD
);
}
}
else
new_one
->
dwResultClauseLen
=
0
;
/* ResultStr */
/* ResultStr */
new_one
->
dwResultStrLen
=
len
;
new_one
->
dwResultStrLen
=
len
;
...
...
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