msi: Don't set the shortcut's working directory if it's NULL.

This commit is contained in:
Mike McCormack 2006-07-27 23:18:15 +09:00 committed by Alexandre Julliard
parent 525ceb7085
commit 43f7f3ec3f

View File

@ -2926,7 +2926,8 @@ static UINT ITERATE_CreateShortcuts(MSIRECORD *row, LPVOID param)
LPWSTR Path;
buffer = MSI_RecordGetString(row,12);
Path = resolve_folder(package, buffer, FALSE, FALSE, NULL);
IShellLinkW_SetWorkingDirectory(sl,Path);
if (Path)
IShellLinkW_SetWorkingDirectory(sl,Path);
msi_free(Path);
}