UI/updater: Return false on integrity check failure

master
jp9000 2018-03-15 12:11:46 -07:00
parent 052f395ebf
commit b7e2247de2
1 changed files with 2 additions and 0 deletions

View File

@ -1047,6 +1047,7 @@ static bool UpdateVS2017Redists(json_t *root)
DeleteFile(destPath.c_str());
Status(L"Update failed: Couldn't verify integrity of %s",
L"Visual C++ 2017 Redistributable");
return false;
}
/* ------------------------------------------ *
@ -1070,6 +1071,7 @@ static bool UpdateVS2017Redists(json_t *root)
WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
} else {
DeleteFile(destPath.c_str());
Status(L"Update failed: Could not execute "
L"%s (error code %d)",
L"Visual C++ 2017 Redistributable",