Do not forward _mbccpy to strcpy.

Remove the error message in _mbccpy, it is not an error.
This commit is contained in:
Rein Klazes 2005-11-21 13:34:29 +00:00 committed by Alexandre Julliard
parent 36f6bbb85c
commit 3d96c56f24
2 changed files with 3 additions and 5 deletions

View File

@ -281,11 +281,9 @@ MSVCRT_size_t _mbstrlen(const char* str)
*/ */
void _mbccpy(unsigned char* dest, const unsigned char* src) void _mbccpy(unsigned char* dest, const unsigned char* src)
{ {
*dest++ = *src; *dest = *src;
if(MSVCRT___mb_cur_max > 1 && MSVCRT_isleadbyte(*src)) if(MSVCRT___mb_cur_max > 1 && MSVCRT_isleadbyte(*src))
*dest = *++src; /* MB char */ *++dest = *++src; /* MB char */
else
ERR("failure.. is this ok?\n");
} }
/********************************************************************* /*********************************************************************

View File

@ -335,7 +335,7 @@
@ cdecl _mbbtombc(long) @ cdecl _mbbtombc(long)
@ stub _mbbtype #(long long) @ stub _mbbtype #(long long)
# extern _mbcasemap # extern _mbcasemap
@ cdecl _mbccpy (str str) strcpy @ cdecl _mbccpy (str str)
@ stub _mbcjistojms #(long) @ stub _mbcjistojms #(long)
@ stub _mbcjmstojis #(long) @ stub _mbcjmstojis #(long)
@ cdecl _mbclen(ptr) @ cdecl _mbclen(ptr)