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
aebe1c69
Commit
aebe1c69
authored
May 19, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
May 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add _mbsnbcpy_s_l implementation.
parent
534394df
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
8 deletions
+17
-8
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr110.spec
dlls/msvcr110/msvcr110.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
+12
-3
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcr100/msvcr100.spec
View file @
aebe1c69
...
@@ -1132,7 +1132,7 @@
...
@@ -1132,7 +1132,7 @@
@ cdecl _mbsnbcpy(ptr str long)
@ cdecl _mbsnbcpy(ptr str long)
@ stub _mbsnbcpy_l
@ stub _mbsnbcpy_l
@ cdecl _mbsnbcpy_s(ptr long str long)
@ cdecl _mbsnbcpy_s(ptr long str long)
@
stub _mbsnbcpy_s_l
@
cdecl _mbsnbcpy_s_l(ptr long str long ptr)
@ cdecl _mbsnbicmp(str str long)
@ cdecl _mbsnbicmp(str str long)
@ stub _mbsnbicmp_l
@ stub _mbsnbicmp_l
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll(str str long)
...
...
dlls/msvcr110/msvcr110.spec
View file @
aebe1c69
...
@@ -1490,7 +1490,7 @@
...
@@ -1490,7 +1490,7 @@
@ cdecl _mbsnbcpy(ptr str long)
@ cdecl _mbsnbcpy(ptr str long)
@ stub _mbsnbcpy_l
@ stub _mbsnbcpy_l
@ cdecl _mbsnbcpy_s(ptr long str long)
@ cdecl _mbsnbcpy_s(ptr long str long)
@
stub _mbsnbcpy_s_l
@
cdecl _mbsnbcpy_s_l(ptr long str long ptr)
@ cdecl _mbsnbicmp(str str long)
@ cdecl _mbsnbicmp(str str long)
@ stub _mbsnbicmp_l
@ stub _mbsnbicmp_l
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll(str str long)
...
...
dlls/msvcr80/msvcr80.spec
View file @
aebe1c69
...
@@ -804,7 +804,7 @@
...
@@ -804,7 +804,7 @@
@ cdecl _mbsnbcpy(ptr str long)
@ cdecl _mbsnbcpy(ptr str long)
@ stub _mbsnbcpy_l
@ stub _mbsnbcpy_l
@ cdecl _mbsnbcpy_s(ptr long str long)
@ cdecl _mbsnbcpy_s(ptr long str long)
@
stub _mbsnbcpy_s_l
@
cdecl _mbsnbcpy_s_l(ptr long str long ptr)
@ cdecl _mbsnbicmp(str str long)
@ cdecl _mbsnbicmp(str str long)
@ stub _mbsnbicmp_l
@ stub _mbsnbicmp_l
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll(str str long)
...
...
dlls/msvcr90/msvcr90.spec
View file @
aebe1c69
...
@@ -782,7 +782,7 @@
...
@@ -782,7 +782,7 @@
@ cdecl _mbsnbcpy(ptr str long)
@ cdecl _mbsnbcpy(ptr str long)
@ stub _mbsnbcpy_l
@ stub _mbsnbcpy_l
@ cdecl _mbsnbcpy_s(ptr long str long)
@ cdecl _mbsnbcpy_s(ptr long str long)
@
stub _mbsnbcpy_s_l
@
cdecl _mbsnbcpy_s_l(ptr long str long ptr)
@ cdecl _mbsnbicmp(str str long)
@ cdecl _mbsnbicmp(str str long)
@ stub _mbsnbicmp_l
@ stub _mbsnbicmp_l
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll(str str long)
...
...
dlls/msvcrt/mbcs.c
View file @
aebe1c69
...
@@ -638,12 +638,13 @@ unsigned char* CDECL _mbsncpy(unsigned char* dst, const unsigned char* src, MSVC
...
@@ -638,12 +638,13 @@ unsigned char* CDECL _mbsncpy(unsigned char* dst, const unsigned char* src, MSVC
}
}
/*********************************************************************
/*********************************************************************
* _mbsnbcpy_s(MSVCRT.@)
* _mbsnbcpy_s
_l
(MSVCRT.@)
* REMARKS
* REMARKS
* Unlike _mbsnbcpy this function does not pad the rest of the dest
* Unlike _mbsnbcpy this function does not pad the rest of the dest
* string with 0
* string with 0
*/
*/
int
CDECL
_mbsnbcpy_s
(
unsigned
char
*
dst
,
MSVCRT_size_t
size
,
const
unsigned
char
*
src
,
MSVCRT_size_t
n
)
int
CDECL
_mbsnbcpy_s_l
(
unsigned
char
*
dst
,
MSVCRT_size_t
size
,
const
unsigned
char
*
src
,
MSVCRT_size_t
n
,
MSVCRT__locale_t
locale
)
{
{
MSVCRT_size_t
pos
=
0
;
MSVCRT_size_t
pos
=
0
;
...
@@ -657,7 +658,7 @@ int CDECL _mbsnbcpy_s(unsigned char* dst, MSVCRT_size_t size, const unsigned cha
...
@@ -657,7 +658,7 @@ int CDECL _mbsnbcpy_s(unsigned char* dst, MSVCRT_size_t size, const unsigned cha
if
(
!
n
)
if
(
!
n
)
return
0
;
return
0
;
if
(
get_mbcinfo
(
)
->
ismbcodepage
)
if
(
(
locale
?
locale
->
mbcinfo
:
get_mbcinfo
()
)
->
ismbcodepage
)
{
{
int
is_lead
=
0
;
int
is_lead
=
0
;
while
(
*
src
&&
n
)
while
(
*
src
&&
n
)
...
@@ -703,6 +704,14 @@ int CDECL _mbsnbcpy_s(unsigned char* dst, MSVCRT_size_t size, const unsigned cha
...
@@ -703,6 +704,14 @@ int CDECL _mbsnbcpy_s(unsigned char* dst, MSVCRT_size_t size, const unsigned cha
}
}
/*********************************************************************
/*********************************************************************
* _mbsnbcpy_s(MSVCRT.@)
*/
int
CDECL
_mbsnbcpy_s
(
unsigned
char
*
dst
,
MSVCRT_size_t
size
,
const
unsigned
char
*
src
,
MSVCRT_size_t
n
)
{
return
_mbsnbcpy_s_l
(
dst
,
size
,
src
,
n
,
NULL
);
}
/*********************************************************************
* _mbsnbcpy(MSVCRT.@)
* _mbsnbcpy(MSVCRT.@)
* REMARKS
* REMARKS
* Like strncpy this function doesn't enforce the string to be
* Like strncpy this function doesn't enforce the string to be
...
...
dlls/msvcrt/msvcrt.spec
View file @
aebe1c69
...
@@ -755,7 +755,7 @@
...
@@ -755,7 +755,7 @@
@ cdecl _mbsnbcpy(ptr str long)
@ cdecl _mbsnbcpy(ptr str long)
# stub _mbsnbcpy_l(ptr str long ptr)
# stub _mbsnbcpy_l(ptr str long ptr)
@ cdecl _mbsnbcpy_s(ptr long str long)
@ cdecl _mbsnbcpy_s(ptr long str long)
# stub
_mbsnbcpy_s_l(ptr long str long ptr)
@ cdecl
_mbsnbcpy_s_l(ptr long str long ptr)
@ cdecl _mbsnbicmp(str str long)
@ cdecl _mbsnbicmp(str str long)
# stub _mbsnbicmp_l(str str long ptr)
# stub _mbsnbicmp_l(str str long ptr)
@ cdecl _mbsnbicoll(str str long)
@ cdecl _mbsnbicoll(str str long)
...
...
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