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
9e322594
Commit
9e322594
authored
Mar 27, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't forward wcsncpy to ntdll.
parent
975801cc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
wcs.c
dlls/msvcrt/wcs.c
+15
-0
No files found.
dlls/msvcrt/msvcrt.spec
View file @
9e322594
...
@@ -1486,7 +1486,7 @@
...
@@ -1486,7 +1486,7 @@
@ cdecl wcsncat(wstr wstr long) ntdll.wcsncat
@ cdecl wcsncat(wstr wstr long) ntdll.wcsncat
@ cdecl wcsncat_s(wstr long wstr long) MSVCRT_wcsncat_s
@ cdecl wcsncat_s(wstr long wstr long) MSVCRT_wcsncat_s
@ cdecl wcsncmp(wstr wstr long) ntdll.wcsncmp
@ cdecl wcsncmp(wstr wstr long) ntdll.wcsncmp
@ cdecl wcsncpy(ptr wstr long)
ntdll.
wcsncpy
@ cdecl wcsncpy(ptr wstr long)
MSVCRT_
wcsncpy
@ cdecl wcsncpy_s(ptr long wstr long) MSVCRT_wcsncpy_s
@ cdecl wcsncpy_s(ptr long wstr long) MSVCRT_wcsncpy_s
@ cdecl wcsnlen(wstr long) MSVCRT_wcsnlen
@ cdecl wcsnlen(wstr long) MSVCRT_wcsnlen
@ cdecl wcspbrk(wstr wstr) MSVCRT_wcspbrk
@ cdecl wcspbrk(wstr wstr) MSVCRT_wcspbrk
...
...
dlls/msvcrt/wcs.c
View file @
9e322594
...
@@ -1247,6 +1247,21 @@ INT CDECL MSVCRT_wcscpy_s( MSVCRT_wchar_t* wcDest, MSVCRT_size_t numElement, con
...
@@ -1247,6 +1247,21 @@ INT CDECL MSVCRT_wcscpy_s( MSVCRT_wchar_t* wcDest, MSVCRT_size_t numElement, con
}
}
/******************************************************************
/******************************************************************
* wcsncpy (MSVCRT.@)
*/
MSVCRT_wchar_t
*
__cdecl
MSVCRT_wcsncpy
(
MSVCRT_wchar_t
*
s1
,
const
MSVCRT_wchar_t
*
s2
,
MSVCRT_size_t
n
)
{
MSVCRT_size_t
i
;
for
(
i
=
0
;
i
<
n
;
i
++
)
if
(
!
(
s1
[
i
]
=
s2
[
i
]))
break
;
for
(;
i
<
n
;
i
++
)
s1
[
i
]
=
0
;
return
s1
;
}
/******************************************************************
* wcsncpy_s (MSVCRT.@)
* wcsncpy_s (MSVCRT.@)
*/
*/
INT
CDECL
MSVCRT_wcsncpy_s
(
MSVCRT_wchar_t
*
wcDest
,
MSVCRT_size_t
numElement
,
const
MSVCRT_wchar_t
*
wcSrc
,
INT
CDECL
MSVCRT_wcsncpy_s
(
MSVCRT_wchar_t
*
wcDest
,
MSVCRT_size_t
numElement
,
const
MSVCRT_wchar_t
*
wcSrc
,
...
...
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