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
557a760e
Commit
557a760e
authored
Oct 30, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Nov 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsnbcat_l implementation.
parent
37ecbf6d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
22 deletions
+46
-22
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
+38
-14
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 @
557a760e
...
...
@@ -1124,7 +1124,7 @@
@ cdecl _mbslwr_s(str long)
@ cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@
stub _mbsnbcat_l
@
cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
557a760e
...
...
@@ -1481,7 +1481,7 @@
@ cdecl _mbslwr_s(str long)
@ cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@
stub _mbsnbcat_l
@
cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
557a760e
...
...
@@ -1492,7 +1492,7 @@
@ cdecl _mbslwr_s(str long)
@ cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@
stub _mbsnbcat_l
@
cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
557a760e
...
...
@@ -796,7 +796,7 @@
@ cdecl _mbslwr_s(str long)
@ cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@
stub _mbsnbcat_l
@
cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
557a760e
...
...
@@ -774,7 +774,7 @@
@ cdecl _mbslwr_s(str long)
@ cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@
stub _mbsnbcat_l
@
cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
...
...
dlls/msvcrt/mbcs.c
View file @
557a760e
...
...
@@ -2187,24 +2187,40 @@ size_t CDECL _mbsnbcnt(const unsigned char* str, size_t len)
}
/*********************************************************************
* _mbsnbcat(MSVCRT.@)
* _mbsnbcat
_l
(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsnbcat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
size_t
len
)
unsigned
char
*
CDECL
_mbsnbcat
_l
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
size_t
len
,
_locale_t
locale
)
{
if
(
get_mbcinfo
()
->
ismbcodepage
)
pthreadmbcinfo
mbcinfo
;
if
(
!
MSVCRT_CHECK_PMT
(
dst
&&
src
))
return
NULL
;
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
mbcinfo
->
ismbcodepage
)
{
unsigned
char
*
res
=
dst
;
while
(
*
dst
)
{
if
(
_ismbblead
(
*
dst
++
))
{
if
(
*
dst
)
{
dst
++
;
}
else
{
/* as per msdn overwrite the lead byte in front of '\0' */
dst
--
;
break
;
}
}
}
while
(
*
dst
)
{
if
(
_ismbblead_l
(
*
dst
++
,
locale
))
{
if
(
*
dst
)
{
dst
++
;
}
else
{
/* as per msdn overwrite the lead byte in front of '\0' */
dst
--
;
break
;
}
}
}
while
(
*
src
&&
len
--
)
*
dst
++
=
*
src
++
;
*
dst
=
'\0'
;
return
res
;
...
...
@@ -2212,6 +2228,14 @@ unsigned char* CDECL _mbsnbcat(unsigned char* dst, const unsigned char* src, siz
return
u_strncat
(
dst
,
src
,
len
);
/* ASCII CP */
}
/*********************************************************************
* _mbsnbcat(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsnbcat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
size_t
len
)
{
return
_mbsnbcat_l
(
dst
,
src
,
len
,
NULL
);
}
int
CDECL
_mbsnbcat_s
(
unsigned
char
*
dst
,
size_t
size
,
const
unsigned
char
*
src
,
size_t
len
)
{
unsigned
char
*
ptr
=
dst
;
...
...
dlls/msvcrt/msvcrt.spec
View file @
557a760e
...
...
@@ -745,7 +745,7 @@
@ cdecl _mbslwr_s(str long)
@ cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
# stub
_mbsnbcat_l(str str long ptr)
@ cdecl
_mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
# stub _mbsnbcat_s_l(str long ptr long ptr)
@ cdecl _mbsnbcmp(str str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
557a760e
...
...
@@ -640,7 +640,7 @@
@ cdecl _mbslwr_s(str long)
@ cdecl _mbslwr_s_l(str long ptr)
@ cdecl _mbsnbcat(str str long)
@
stub _mbsnbcat_l
@
cdecl _mbsnbcat_l(str str long ptr)
@ cdecl _mbsnbcat_s(str long ptr long)
@ stub _mbsnbcat_s_l
@ cdecl _mbsnbcmp(str str long)
...
...
@@ -1209,7 +1209,7 @@
@ cdecl _o__mbslwr_s(str long) _mbslwr_s
@ cdecl _o__mbslwr_s_l(str long ptr) _mbslwr_s_l
@ cdecl _o__mbsnbcat(str str long) _mbsnbcat
@
stub _o_
_mbsnbcat_l
@
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__mbsnbcmp(str str long) _mbsnbcmp
...
...
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