Michael Müller : shell32: Correctly compare result of SHFileOperation in UNIXFS copy/ delete functions.
Module: wine Branch: master Commit: b05aa34f63f8d1a752cea9bf69d436e09c951bb1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b05aa34f63f8d1a752cea9bf69... Author: Michael Müller <michael(a)fds-team.de> Date: Fri Jul 1 22:00:28 2016 +0200 shell32: Correctly compare result of SHFileOperation in UNIXFS copy/delete functions. Signed-off-by: Michael Müller <michael(a)fds-team.de> Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/shell32/shfldr_unixfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index 309c941..884fc0a 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -847,7 +847,7 @@ static HRESULT UNIXFS_copy(LPCWSTR pwszDosSrc, LPCWSTR pwszDosDst) op.pFrom = pwszSrc; op.pTo = pwszDst; op.fFlags = FOF_ALLOWUNDO; - if (!SHFileOperationW(&op)) + if (SHFileOperationW(&op)) { WARN("SHFileOperationW failed\n"); res = E_FAIL; @@ -1981,7 +1981,7 @@ static HRESULT UNIXFS_delete_with_shfileop(UnixFolder *This, UINT cidl, const LP op.wFunc = FO_DELETE; op.pFrom = wszPathsList; op.fFlags = FOF_ALLOWUNDO; - if (!SHFileOperationW(&op)) + if (SHFileOperationW(&op)) { WARN("SHFileOperationW failed\n"); ret = E_FAIL;
participants (1)
-
Alexandre Julliard