[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: kernel32: Fix moving a file to the same one
From: Alexandre Julliard <julliard () winehq ! org>
Date: 2010-03-29 14:44:53
Message-ID: 87d3ynb316.fsf () wine ! dyndns ! org
[Download RAW message or body]
André Hentschel <nerv@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@winehq.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic