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
a6ed3d55
Commit
a6ed3d55
authored
Nov 06, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsnbcat_s_l implementation.
parent
9365e6f6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
14 deletions
+29
-14
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
mbcs.c
dlls/msvcrt/mbcs.c
+21
-6
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+2
-2
No files found.
dlls/msvcr100/msvcr100.spec
View file @
a6ed3d55
...
...
@@ -1126,7 +1126,7 @@
@ cdecl _mbsnbcat(str str long)
@ cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@
stub _mbsnbcat_s_l
@
cdecl _mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
a6ed3d55
...
...
@@ -1483,7 +1483,7 @@
@ cdecl _mbsnbcat(str str long)
@ cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@
stub _mbsnbcat_s_l
@
cdecl _mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
a6ed3d55
...
...
@@ -1494,7 +1494,7 @@
@ cdecl _mbsnbcat(str str long)
@ cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@
stub _mbsnbcat_s_l
@
cdecl _mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
a6ed3d55
...
...
@@ -798,7 +798,7 @@
@ cdecl _mbsnbcat(str str long)
@ cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@
stub _mbsnbcat_s_l
@
cdecl _mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
a6ed3d55
...
...
@@ -776,7 +776,7 @@
@ cdecl _mbsnbcat(str str long)
@ cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@
stub _mbsnbcat_s_l
@
cdecl _mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
...
...
dlls/msvcrt/mbcs.c
View file @
a6ed3d55
...
...
@@ -2336,20 +2336,22 @@ unsigned char* CDECL _mbsnbcat(unsigned char *dst, const unsigned char *src, siz
return
_mbsnbcat_l
(
dst
,
src
,
len
,
NULL
);
}
int
CDECL
_mbsnbcat_s
(
unsigned
char
*
dst
,
size_t
size
,
const
unsigned
char
*
src
,
size_t
len
)
/*********************************************************************
* _mbsnbcat_s_l(MSVCRT.@)
*/
int
CDECL
_mbsnbcat_s_l
(
unsigned
char
*
dst
,
size_t
size
,
const
unsigned
char
*
src
,
size_t
len
,
_locale_t
locale
)
{
unsigned
char
*
ptr
=
dst
;
size_t
i
;
pthreadmbcinfo
mbcinfo
;
if
(
!
dst
&&
!
size
&&
!
src
&&
!
len
)
if
(
!
dst
&&
!
size
&&
!
len
)
return
0
;
if
(
!
dst
||
!
size
||
!
src
)
if
(
!
MSVCRT_CHECK_PMT
(
dst
&&
size
&&
src
)
)
{
if
(
dst
&&
size
)
*
dst
=
'\0'
;
*
_errno
()
=
EINVAL
;
return
EINVAL
;
}
...
...
@@ -2364,9 +2366,14 @@ int CDECL _mbsnbcat_s(unsigned char *dst, size_t size, const unsigned char *src,
return
EINVAL
;
}
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
/* If necessary, check that the character preceding the null terminator is
* a lead byte and move the pointer back by one for later overwrite. */
if
(
ptr
!=
dst
&&
get_mbcinfo
()
->
ismbcodepage
&&
_ismbblead
(
*
(
ptr
-
1
)
))
if
(
ptr
!=
dst
&&
mbcinfo
->
ismbcodepage
&&
_ismbblead_l
(
*
(
ptr
-
1
),
locale
))
size
++
,
ptr
--
;
for
(
i
=
0
;
*
src
&&
i
<
len
;
i
++
)
...
...
@@ -2387,6 +2394,14 @@ int CDECL _mbsnbcat_s(unsigned char *dst, size_t size, const unsigned char *src,
}
/*********************************************************************
* _mbsnbcat_s(MSVCRT.@)
*/
int
CDECL
_mbsnbcat_s
(
unsigned
char
*
dst
,
size_t
size
,
const
unsigned
char
*
src
,
size_t
len
)
{
return
_mbsnbcat_s_l
(
dst
,
size
,
src
,
len
,
NULL
);
}
/*********************************************************************
* _mbsncat(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsncat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
size_t
len
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
a6ed3d55
...
...
@@ -747,7 +747,7 @@
@ cdecl _mbsnbcat(str str long)
@ cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
# stub
_mbsnbcat_s_l(str long ptr long ptr)
@ cdecl
_mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
a6ed3d55
...
...
@@ -642,7 +642,7 @@
@ cdecl _mbsnbcat(str str long)
@ cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@
stub _mbsnbcat_s_l
@
cdecl _mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
@ cdecl _mbsnbcmp_l(str str long ptr)
@ cdecl _mbsnbcnt(ptr long)
...
...
@@ -1211,7 +1211,7 @@
@ cdecl _o__mbsnbcat(str str long) _mbsnbcat
@ cdecl _o__mbsnbcat_l(str str long ptr) _mbsnbcat_l
@ cdecl _o__mbsnbcat_s(str long ptr long) _mbsnbcat_s
@
stub _o_
_mbsnbcat_s_l
@
cdecl _o__mbsnbcat_s_l(str long ptr long ptr)
_mbsnbcat_s_l
@ cdecl _o__mbsnbcmp(str str long) _mbsnbcmp
@ cdecl _o_mbsnbcmp_l(str str long ptr) _mbsnbcmp_l
@ cdecl _o__mbsnbcnt(ptr long) _mbsnbcnt
...
...
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