Commit 87ebfe5d authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

version: Return VIF_CANNOTREADSRC if no source path could be generated.

parent 550e2a9f
......@@ -1341,6 +1341,7 @@ DWORD WINAPI VerInstallFileA(
flags,srcfilename,destfilename,srcdir,destdir,curdir,tmpfile,*tmpfilelen
);
xret = 0;
if (!srcdir || !srcfilename) return VIF_CANNOTREADSRC;
sprintf(srcfn,"%s\\%s",srcdir,srcfilename);
if (!destdir || !*destdir) pdest = srcdir;
else pdest = destdir;
......
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