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
31142f83
Commit
31142f83
authored
Jun 15, 2000
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jun 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cp_mbstowcs: check functions return zero on success.
parent
594a0dcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mbtowc.c
unicode/mbtowc.c
+2
-2
No files found.
unicode/mbtowc.c
View file @
31142f83
...
...
@@ -149,7 +149,7 @@ int cp_mbstowcs( const union cptable *table, int flags,
{
if
(
flags
&
MB_ERR_INVALID_CHARS
)
{
if
(
!
check_invalid_chars_sbcs
(
&
table
->
sbcs
,
src
,
srclen
))
return
-
2
;
if
(
check_invalid_chars_sbcs
(
&
table
->
sbcs
,
src
,
srclen
))
return
-
2
;
}
if
(
!
dstlen
)
return
srclen
;
return
mbstowcs_sbcs
(
&
table
->
sbcs
,
src
,
srclen
,
dst
,
dstlen
);
...
...
@@ -158,7 +158,7 @@ int cp_mbstowcs( const union cptable *table, int flags,
{
if
(
flags
&
MB_ERR_INVALID_CHARS
)
{
if
(
!
check_invalid_chars_dbcs
(
&
table
->
dbcs
,
src
,
srclen
))
return
-
2
;
if
(
check_invalid_chars_dbcs
(
&
table
->
dbcs
,
src
,
srclen
))
return
-
2
;
}
if
(
!
dstlen
)
return
get_length_dbcs
(
&
table
->
dbcs
,
src
,
srclen
);
return
mbstowcs_dbcs
(
&
table
->
dbcs
,
src
,
srclen
,
dst
,
dstlen
);
...
...
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