Robert Shearman : msi: Fix the creation of shortcuts with a null icon index by mapping it to zero .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 3 15:58:30 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Thu Aug  3 20:24:10 2006 +0100

msi: Fix the creation of shortcuts with a null icon index by mapping it to zero.

---

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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index cce2a59..e2d78b1 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2934,6 +2934,10 @@ static UINT ITERATE_CreateShortcuts(MSIR
         Path = build_icon_path(package,buffer);
         index = MSI_RecordGetInteger(row,10);
 
+        /* no value means 0 */
+        if (index == MSI_NULL_INTEGER)
+            index = 0;
+
         IShellLinkW_SetIconLocation(sl,Path,index);
         msi_free(Path);
     }




More information about the wine-cvs mailing list