[PATCH] msvcp140: Implement _Copy_file().

Piotr Caban piotr.caban at gmail.com
Mon Apr 11 13:04:06 CDT 2022


Hi Paul,

On 4/11/22 19:13, Paul Gofman wrote:
> +DWORD __cdecl _Copy_file(WCHAR const* src, WCHAR const* dst)
> +{
> +    TRACE("src %s, dst %s.\n", debugstr_w(src), debugstr_w(dst));
> +
> +    if (CopyFileW(src, dst, FALSE))
> +    {
> +        SetLastError(ERROR_SUCCESS);
It looks like the SetLastError call is only needed because of a bug in 
CopyFileW implementation. Please remove it and mark the test as 
todo_wine or fix CopyFileW.

Thanks,
Piotr



More information about the wine-devel mailing list