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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 28 07:15:07 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 43f7f3ec3f51b51949a3a7be5166a48d10b8559e
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=43f7f3ec3f51b51949a3a7be5166a48d10b8559e

Author: Mike McCormack <mike at codeweavers.com>
Date:   Thu Jul 27 23:18:15 2006 +0900

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

---

 dlls/msi/action.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index f7454c2..ccdb3c4 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2926,7 +2926,8 @@ static UINT ITERATE_CreateShortcuts(MSIR
         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);
     }
 




More information about the wine-cvs mailing list