Commit 942d8a69 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

lstrcpyA can't use strcpy.

parent 461ded42
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment