shell32: FOF_MULTIDESTFILES must be set when copying files into directory

James Hawkins truiken at gmail.com
Fri Oct 17 12:51:08 CDT 2008


2008/10/17 Vitaly Perov <vitperov at etersoft.ru>:
>
>
> From e2eec69ff86960bd6729a3105747310ce9c256fd Mon Sep 17 00:00:00 2001
> From: Vitaly Perov <vitperov at etersoft.ru>
> Date: Fri, 17 Oct 2008 16:56:46 +0400
> Subject: [PATCH] shell32: FOF_MULTIDESTFILES must be set when copying files into directory
>
> ---
>  dlls/shell32/shlfileop.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c
> index 49f61d3..e6565ea 100644
> --- a/dlls/shell32/shlfileop.c
> +++ b/dlls/shell32/shlfileop.c
> @@ -1382,6 +1382,7 @@ static void move_dir_to_dir(LPSHFILEOPSTRUCTW lpFileOp, const FILE_ENTRY *feFrom
>     fileOp = *lpFileOp;
>     fileOp.pFrom = szFrom;
>     fileOp.pTo = szTo;
> +    fileOp.fFlags |= FOF_MULTIDESTFILES;
>
>     SHFileOperationW(&fileOp);
>     RemoveDirectoryW(feFrom->szFullPath);
>

We've been over this before.  This needs a test case.  Either way,
this doesn't look right.  What are you trying to fix?

-- 
James Hawkins



More information about the wine-devel mailing list