[misc] fix coverity defects

* Also update coverity build script
This commit is contained in:
Pete Batard 2015-08-27 18:37:04 +01:00
parent cc10821361
commit 6a9a14bfb2
4 changed files with 13 additions and 7 deletions

View file

@ -381,7 +381,8 @@ out:
SendMessage(hProgressDialog, UM_PROGRESS_EXIT, (WPARAM)r, 0);
if (fd != NULL) fclose(fd);
if (!r) {
_unlink(file);
if (file != NULL)
_unlink(file);
if (PromptOnError) {
PrintInfo(0, MSG_242);
SetLastError(error_code);