msi: Fix ITERATE_MoveFiles when no source- and destname is specified.

This commit is contained in:
Sebastian Lackner 2014-08-14 01:39:13 +02:00 committed by Alexandre Julliard
parent befe0f7b69
commit 582f2640d2
1 changed files with 7 additions and 1 deletions

View File

@ -843,7 +843,13 @@ static UINT ITERATE_MoveFiles( MSIRECORD *rec, LPVOID param )
{
if (!wildcards)
{
destname = strdupW(sourcename);
WCHAR *p;
if (sourcename)
destname = strdupW(sourcename);
else if ((p = strrchrW(sourcedir, '\\')))
destname = strdupW(p + 1);
else
destname = strdupW(sourcedir);
if (!destname)
goto done;
}