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
fea1a845
Commit
fea1a845
authored
Aug 26, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return the correct character count in DBCS locales.
parent
97551bce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
listbox.c
controls/listbox.c
+7
-1
No files found.
controls/listbox.c
View file @
fea1a845
...
@@ -778,7 +778,13 @@ static LRESULT LISTBOX_GetText( LB_DESCR *descr, INT index, LPARAM lParam, BOOL
...
@@ -778,7 +778,13 @@ static LRESULT LISTBOX_GetText( LB_DESCR *descr, INT index, LPARAM lParam, BOOL
if
(
HAS_STRINGS
(
descr
))
if
(
HAS_STRINGS
(
descr
))
{
{
if
(
!
lParam
)
if
(
!
lParam
)
return
strlenW
(
descr
->
items
[
index
].
str
);
{
DWORD
len
=
strlenW
(
descr
->
items
[
index
].
str
);
if
(
unicode
)
return
len
;
return
WideCharToMultiByte
(
CP_ACP
,
0
,
descr
->
items
[
index
].
str
,
len
,
NULL
,
0
,
NULL
,
NULL
);
}
TRACE
(
"index %d (0x%04x) %s
\n
"
,
index
,
index
,
debugstr_w
(
descr
->
items
[
index
].
str
));
TRACE
(
"index %d (0x%04x) %s
\n
"
,
index
,
index
,
debugstr_w
(
descr
->
items
[
index
].
str
));
...
...
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