From: Ziqing Hui <zhui(a)codeweavers.com> --- dlls/shell32/tests/shlfileop.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c index ff27ff06d42..3ec2757aca0 100644 --- a/dlls/shell32/tests/shlfileop.c +++ b/dlls/shell32/tests/shlfileop.c @@ -1457,6 +1457,28 @@ static void test_copy(void) ERROR_INVALID_NAME, FALSE, FALSE, FALSE); ok(!file_exists("two\\aa.txt"), "Expected file to not exist\n"); + check_file_operation(FO_COPY, FOF_NO_UI | FOF_MULTIDESTFILES, + "aa.txt\0", "one\0tw?\0", + ERROR_SUCCESS, FALSE, TRUE, FALSE); + todo_wine + ok(DeleteFileA("one\\aa.txt"), "Expected file to exist\n"); + ok(!DeleteFileA("two\\aa.txt"), "Expected file to not exist\n"); + + check_file_operation(FO_COPY, FOF_NO_UI, + "aa.txt\0bb.txt\0", "one\0tw?\0", + ERROR_SUCCESS, FALSE, TRUE, FALSE); + todo_wine + ok(DeleteFileA("one\\aa.txt"), "Expected file to exist\n"); + todo_wine + ok(DeleteFileA("one\\bb.txt"), "Expected file to exist\n"); + ok(!DeleteFileA("two\\bb.txt"), "Expected file to not exist\n"); + + check_file_operation(FO_COPY, FOF_NO_UI | FOF_MULTIDESTFILES, + "aa.txt\0bb.txt\0", "one\0tw?\0", + ERROR_INVALID_NAME, FALSE, FALSE, FALSE); + ok(!DeleteFileA("one\\aa.txt"), "Expected file to not exist\n"); + ok(!DeleteFileA("two\\bb.txt"), "Expected file to not exist\n"); + ok(DeleteFileA("aa.txt"), "Expected file to exist\n"); ok(DeleteFileA("ab.txt"), "Expected file to exist\n"); ok(DeleteFileA("bb.txt"), "Expected file to exist\n"); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7993