msvcrt: Don't forward wcsncpy to ntdll.
This commit is contained in:
parent
975801cceb
commit
9e32259457
|
@ -1486,7 +1486,7 @@
|
|||
@ cdecl wcsncat(wstr wstr long) ntdll.wcsncat
|
||||
@ cdecl wcsncat_s(wstr long wstr long) MSVCRT_wcsncat_s
|
||||
@ 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 wcsnlen(wstr long) MSVCRT_wcsnlen
|
||||
@ cdecl wcspbrk(wstr wstr) MSVCRT_wcspbrk
|
||||
|
|
|
@ -1246,6 +1246,21 @@ INT CDECL MSVCRT_wcscpy_s( MSVCRT_wchar_t* wcDest, MSVCRT_size_t numElement, con
|
|||
return 0;
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
* 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.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue