Commit e3853a5e authored by Olivier F. R. Dierick's avatar Olivier F. R. Dierick Committed by Michael Stefaniuc

shell32: Set last error explicitly in SHFileOperation().

Signed-off-by: 's avatarOlivier F. R. Dierick <o.dierick@piezo-forte.be> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit 9f202b78) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 17a82619
......@@ -894,7 +894,6 @@ int WINAPI SHFileOperationA(LPSHFILEOPSTRUCTA lpFileOp)
if (ForFree) continue;
retCode = ERROR_OUTOFMEMORY;
nFileOp.fAnyOperationsAborted = TRUE;
SetLastError(retCode);
return retCode;
}
}
......@@ -1564,6 +1563,7 @@ int WINAPI SHFileOperationW(LPSHFILEOPSTRUCTW lpFileOp)
if (ret == ERROR_CANCELLED)
lpFileOp->fAnyOperationsAborted = TRUE;
SetLastError(ERROR_SUCCESS);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment