Commit 1174e649 authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

Avoid a magic number.

parent b30d92df
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment