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
d8c91f58
Commit
d8c91f58
authored
Sep 15, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Update CopyCompClauseIMEtoClient to handle A->W and W->A conversions.
parent
b2d9edd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
3 deletions
+49
-3
imm.c
dlls/imm32/imm.c
+49
-3
No files found.
dlls/imm32/imm.c
View file @
d8c91f58
...
...
@@ -1078,10 +1078,56 @@ static INT CopyCompAttrIMEtoClient(InputContextData *data, LPBYTE source, INT sl
static
INT
CopyCompClauseIMEtoClient
(
InputContextData
*
data
,
LPBYTE
source
,
INT
slen
,
LPBYTE
ssource
,
INT
sslen
,
LPBYTE
target
,
INT
tlen
,
BOOL
unicode
)
{
if
(
target
&&
source
&&
tlen
>=
slen
)
memcpy
(
target
,
source
,
slen
);
INT
rc
;
if
(
is_himc_ime_unicode
(
data
)
&&
!
unicode
)
{
if
(
tlen
)
{
int
i
;
if
(
slen
<
tlen
)
tlen
=
slen
;
tlen
/=
sizeof
(
DWORD
);
for
(
i
=
0
;
i
<
tlen
;
++
i
)
{
((
DWORD
*
)
target
)[
i
]
=
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LPWSTR
)
ssource
,
((
DWORD
*
)
source
)[
i
],
NULL
,
0
,
NULL
,
NULL
);
}
rc
=
sizeof
(
DWORD
)
*
i
;
}
else
rc
=
slen
;
}
else
if
(
!
is_himc_ime_unicode
(
data
)
&&
unicode
)
{
if
(
tlen
)
{
int
i
;
if
(
slen
<
tlen
)
tlen
=
slen
;
tlen
/=
sizeof
(
DWORD
);
for
(
i
=
0
;
i
<
tlen
;
++
i
)
{
((
DWORD
*
)
target
)[
i
]
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPSTR
)
ssource
,
((
DWORD
*
)
source
)[
i
],
NULL
,
0
);
}
rc
=
sizeof
(
DWORD
)
*
i
;
}
else
rc
=
slen
;
}
else
{
memcpy
(
target
,
source
,
min
(
slen
,
tlen
));
rc
=
slen
;
}
return
slen
;
return
rc
;
}
static
INT
CopyCompOffsetIMEtoClient
(
InputContextData
*
data
,
DWORD
offset
,
LPBYTE
ssource
,
BOOL
unicode
)
...
...
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