kernel32: Fix moving a file to the same one
Alexandre Julliard
julliard at winehq.org
Mon Mar 29 09:44:53 CDT 2010
André Hentschel <nerv at dawncrow.de> writes:
> diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
> index 2b69e8c..d34b3a7 100644
> --- a/dlls/kernel32/path.c
> +++ b/dlls/kernel32/path.c
> @@ -1031,6 +1031,9 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR source, LPCWSTR dest,
> if (flag & MOVEFILE_WRITE_THROUGH)
> FIXME("MOVEFILE_WRITE_THROUGH unimplemented\n");
>
> + if (!strcmpiW( source, dest ))
> + return TRUE; /* we are done */
> +
There's a lot more to this than simply comparing the specified paths.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list