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
f091d9ed
Commit
f091d9ed
authored
Jun 14, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix C locale handling in mbstowcs.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7efd0c2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
mbcs.c
dlls/msvcrt/mbcs.c
+11
-0
No files found.
dlls/msvcrt/mbcs.c
View file @
f091d9ed
...
...
@@ -2253,6 +2253,17 @@ MSVCRT_size_t CDECL MSVCRT__mbstowcs_l(MSVCRT_wchar_t *wcstr, const char *mbstr,
else
locinfo
=
locale
->
locinfo
;
if
(
!
locinfo
->
lc_codepage
)
{
if
(
!
wcstr
)
return
strlen
(
mbstr
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
wcstr
[
i
]
=
(
unsigned
char
)
mbstr
[
i
];
if
(
!
wcstr
[
i
])
break
;
}
return
i
;
}
/* Ignore count parameter */
if
(
!
wcstr
)
return
MultiByteToWideChar
(
locinfo
->
lc_codepage
,
0
,
mbstr
,
-
1
,
NULL
,
0
)
-
1
;
...
...
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