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