mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 17:49:39 +00:00
lstrcpyA can't use strcpy.
This commit is contained in:
parent
461ded42ac
commit
942d8a69bd
|
@ -244,7 +244,7 @@ SEGPTR WINAPI lstrcpy16( SEGPTR dst, LPCSTR src )
|
|||
|
||||
|
||||
/***********************************************************************
|
||||
* lstrcpy32A (KERNEL32.608)
|
||||
* lstrcpyA (KERNEL32.608)
|
||||
*/
|
||||
LPSTR WINAPI lstrcpyA( LPSTR dst, LPCSTR src )
|
||||
{
|
||||
|
@ -257,7 +257,8 @@ LPSTR WINAPI lstrcpyA( LPSTR dst, LPCSTR src )
|
|||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return 0;
|
||||
}
|
||||
strcpy( dst, src );
|
||||
/* this is how Windows does it */
|
||||
memmove( dst, src, strlen(src)+1 );
|
||||
return dst;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue