mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[SHELL32][SHELLEXT] Fix use of SHFileOperation results and improve log on failure / fix log spam (#3198)
This commit is contained in:
@@ -178,7 +178,13 @@ HRESULT CMoveToMenu::DoRealMove(LPCMINVOKECOMMANDINFO lpici, LPCITEMIDLIST pidl)
|
||||
op.pFrom = strFiles;
|
||||
op.pTo = szPath;
|
||||
op.fFlags = FOF_ALLOWUNDO;
|
||||
return ((SHFileOperation(&op) == 0) ? S_OK : E_FAIL);
|
||||
int res = SHFileOperationW(&op);
|
||||
if (res)
|
||||
{
|
||||
ERR("SHFileOperationW failed with 0x%x\n", res);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CStringW CMoveToMenu::DoGetFileTitle()
|
||||
|
||||
Reference in New Issue
Block a user