Avoid a magic number.

This commit is contained in:
Jon Griffiths 2005-03-19 17:03:43 +00:00 committed by Alexandre Julliard
parent b30d92dfb2
commit 1174e64928

View file

@ -490,7 +490,7 @@ DWORD WINAPI VerInstallFileA(
xret|=VIF_TEMPFILE;
}
} else {
if (-1!=GetFileAttributesA(destfn))
if (INVALID_FILE_ATTRIBUTES!=GetFileAttributesA(destfn))
if (!DeleteFileA(destfn)) {
xret|=_error2vif(GetLastError())|VIF_CANNOTDELETE;
DeleteFileA(tmpfn);