msi: Fix ITERATE_MoveFiles when no source- and destname is specified.
This commit is contained in:
parent
befe0f7b69
commit
582f2640d2
|
@ -843,7 +843,13 @@ static UINT ITERATE_MoveFiles( MSIRECORD *rec, LPVOID param )
|
||||||
{
|
{
|
||||||
if (!wildcards)
|
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)
|
if (!destname)
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue