Avoid a magic number.
This commit is contained in:
parent
b30d92dfb2
commit
1174e64928
|
@ -490,7 +490,7 @@ DWORD WINAPI VerInstallFileA(
|
||||||
xret|=VIF_TEMPFILE;
|
xret|=VIF_TEMPFILE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (-1!=GetFileAttributesA(destfn))
|
if (INVALID_FILE_ATTRIBUTES!=GetFileAttributesA(destfn))
|
||||||
if (!DeleteFileA(destfn)) {
|
if (!DeleteFileA(destfn)) {
|
||||||
xret|=_error2vif(GetLastError())|VIF_CANNOTDELETE;
|
xret|=_error2vif(GetLastError())|VIF_CANNOTDELETE;
|
||||||
DeleteFileA(tmpfn);
|
DeleteFileA(tmpfn);
|
||||||
|
|
Loading…
Reference in New Issue