[Bug 25207] SHFileOperation does not create new directory on FO_MOVE

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jan 28 23:44:45 CST 2014


http://bugs.winehq.org/show_bug.cgi?id=25207

--- Comment #8 from lizhenbo <litimetal at gmail.com> ---
This is first detected by Paul Vriens in dlls/shell32/tests/shlfileop.c

--old code--
retval = SHFileOperationA(&shfo2);
if (dir_exists("test6.txt"))
{
    /* Vista and W2K8 (broken or new behavior ?) */
    ok(retval == ERROR_NO_VOLUME_LABEL, "Expected ERROR_NO_VOLUME_LABEL, got
%d\n", retval);
    ok(DeleteFileA("test6.txt\\test1.txt"), "The file is not moved\n");
    RemoveDirectoryA("test6.txt");
    ok(DeleteFileA("test7.txt\\test2.txt"), "The file is not moved\n");
    RemoveDirectoryA("test7.txt");
}
else
{
    ok(retval == ERROR_CANCELLED, "Expected ERROR_CANCELLED, got %d\n",
retval);
    ok(!file_exists("test6.txt"), "The file is not moved - many files are "
            "specified as a target\n");
}
------------

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list