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
a67a0889
Commit
a67a0889
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 _mbsncat_l implementation.
parent
12a00363
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
26 deletions
+46
-26
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
-18
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 @
a67a0889
...
@@ -1146,7 +1146,7 @@
...
@@ -1146,7 +1146,7 @@
@ stub _mbsnbset_s
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
@ cdecl _mbsncat(str str long)
@
stub _mbsncat_l
@
cdecl _mbsncat_l(str str long ptr)
@ stub _mbsncat_s
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt(str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
a67a0889
...
@@ -1503,7 +1503,7 @@
...
@@ -1503,7 +1503,7 @@
@ stub _mbsnbset_s
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
@ cdecl _mbsncat(str str long)
@
stub _mbsncat_l
@
cdecl _mbsncat_l(str str long ptr)
@ stub _mbsncat_s
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt(str long)
...
...
dlls/msvcr120/msvcr120.spec
View file @
a67a0889
...
@@ -1514,7 +1514,7 @@
...
@@ -1514,7 +1514,7 @@
@ stub _mbsnbset_s
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
@ cdecl _mbsncat(str str long)
@
stub _mbsncat_l
@
cdecl _mbsncat_l(str str long ptr)
@ stub _mbsncat_s
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt(str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
a67a0889
...
@@ -818,7 +818,7 @@
...
@@ -818,7 +818,7 @@
@ stub _mbsnbset_s
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
@ cdecl _mbsncat(str str long)
@
stub _mbsncat_l
@
cdecl _mbsncat_l(str str long ptr)
@ stub _mbsncat_s
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt(str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
a67a0889
...
@@ -796,7 +796,7 @@
...
@@ -796,7 +796,7 @@
@ stub _mbsnbset_s
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
@ cdecl _mbsncat(str str long)
@
stub _mbsncat_l
@
cdecl _mbsncat_l(str str long ptr)
@ stub _mbsncat_s
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt(str long)
...
...
dlls/msvcrt/mbcs.c
View file @
a67a0889
...
@@ -2457,30 +2457,50 @@ int CDECL _mbsnbcat_s(unsigned char *dst, size_t size, const unsigned char *src,
...
@@ -2457,30 +2457,50 @@ int CDECL _mbsnbcat_s(unsigned char *dst, size_t size, const unsigned char *src,
}
}
/*********************************************************************
/*********************************************************************
* _mbsncat(MSVCRT.@)
* _mbsncat
_l
(MSVCRT.@)
*/
*/
unsigned
char
*
CDECL
_mbsncat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
size_t
len
)
unsigned
char
*
CDECL
_mbsncat
_l
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
size_t
len
,
_locale_t
locale
)
{
{
if
(
get_mbcinfo
()
->
ismbcodepage
)
pthreadmbcinfo
mbcinfo
;
{
unsigned
char
*
res
=
dst
;
if
(
!
len
)
while
(
*
dst
)
return
dst
;
{
if
(
_ismbblead
(
*
dst
++
))
if
(
!
MSVCRT_CHECK_PMT
(
dst
&&
src
))
dst
++
;
return
NULL
;
}
while
(
*
src
&&
len
--
)
if
(
locale
)
mbcinfo
=
locale
->
mbcinfo
;
else
mbcinfo
=
get_mbcinfo
();
if
(
mbcinfo
->
ismbcodepage
)
{
{
*
dst
++
=
*
src
;
unsigned
char
*
res
=
dst
;
if
(
_ismbblead
(
*
src
++
))
while
(
*
dst
)
*
dst
++
=
*
src
++
;
{
if
(
_ismbblead_l
(
*
dst
++
,
locale
))
dst
++
;
}
while
(
*
src
&&
len
--
)
{
*
dst
++
=
*
src
;
if
(
_ismbblead_l
(
*
src
++
,
locale
))
*
dst
++
=
*
src
++
;
}
*
dst
=
'\0'
;
return
res
;
}
}
*
dst
=
'\0'
;
return
u_strncat
(
dst
,
src
,
len
);
/* ASCII CP */
return
res
;
}
return
u_strncat
(
dst
,
src
,
len
);
/* ASCII CP */
}
}
/*********************************************************************
* _mbsncat(MSVCRT.@)
*/
unsigned
char
*
CDECL
_mbsncat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
size_t
len
)
{
return
_mbsncat_l
(
dst
,
src
,
len
,
NULL
);
}
/*********************************************************************
/*********************************************************************
* _mbslwr_l(MSVCRT.@)
* _mbslwr_l(MSVCRT.@)
...
...
dlls/msvcrt/msvcrt.spec
View file @
a67a0889
...
@@ -767,7 +767,7 @@
...
@@ -767,7 +767,7 @@
# stub _mbsnbset_s(ptr long long long)
# stub _mbsnbset_s(ptr long long long)
# stub _mbsnbset_s_l(ptr long long long ptr)
# stub _mbsnbset_s_l(ptr long long long ptr)
@ cdecl _mbsncat(str str long)
@ cdecl _mbsncat(str str long)
# stub
_mbsncat_l(str str long ptr)
@ cdecl
_mbsncat_l(str str long ptr)
# stub _mbsncat_s(str long str long)
# stub _mbsncat_s(str long str long)
# stub _mbsncat_s_l(str long str long ptr)
# stub _mbsncat_s_l(str long str long ptr)
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt(str long)
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
a67a0889
...
@@ -662,7 +662,7 @@
...
@@ -662,7 +662,7 @@
@ stub _mbsnbset_s
@ stub _mbsnbset_s
@ stub _mbsnbset_s_l
@ stub _mbsnbset_s_l
@ cdecl _mbsncat(str str long)
@ cdecl _mbsncat(str str long)
@
stub _mbsncat_l
@
cdecl _mbsncat_l(str str long ptr)
@ stub _mbsncat_s
@ stub _mbsncat_s
@ stub _mbsncat_s_l
@ stub _mbsncat_s_l
@ cdecl _mbsnccnt(str long)
@ cdecl _mbsnccnt(str long)
...
@@ -1231,7 +1231,7 @@
...
@@ -1231,7 +1231,7 @@
@ stub _o__mbsnbset_s
@ stub _o__mbsnbset_s
@ stub _o__mbsnbset_s_l
@ stub _o__mbsnbset_s_l
@ cdecl _o__mbsncat(str str long) _mbsncat
@ cdecl _o__mbsncat(str str long) _mbsncat
@
stub _o_
_mbsncat_l
@
cdecl _o__mbsncat_l(str str long ptr)
_mbsncat_l
@ stub _o__mbsncat_s
@ stub _o__mbsncat_s
@ stub _o__mbsncat_s_l
@ stub _o__mbsncat_s_l
@ cdecl _o__mbsnccnt(str long) _mbsnccnt
@ cdecl _o__mbsnccnt(str long) _mbsnccnt
...
...
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