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

This commit is contained in:
André Hentschel 2011-08-29 21:11:28 +02:00 committed by Alexandre Julliard
parent 550e2a9f6a
commit 87ebfe5d18
1 changed files with 1 additions and 0 deletions

View File

@ -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;