Fix calls to setFailed in win32 launcher

This commit is contained in:
Ryan Huffman 2019-08-12 16:32:30 -07:00
parent da1b2e9ec8
commit 328896b9ed

View file

@ -745,7 +745,7 @@ BOOL LauncherManager::installContent() {
} }
else { else {
addToLog(_T("Error decompressing content zip file.")); addToLog(_T("Error decompressing content zip file."));
setFailed(_hasFailed); setFailed(true);
} }
}; };
std::function<void(float)> onProgress = [&](float progress) { std::function<void(float)> onProgress = [&](float progress) {
@ -785,7 +785,7 @@ BOOL LauncherManager::downloadFile(ProcessType type, const CString& url, CString
} else { } else {
addToLog(_T("Error downloading application.")); addToLog(_T("Error downloading application."));
} }
setFailed(_hasFailed); setFailed(true);
} }
}; };
std::function<void(float)> onProgress = [&, type](float progress) { std::function<void(float)> onProgress = [&, type](float progress) {