msi: Fix the creation of shortcuts with a null icon index by mapping it to zero.
This commit is contained in:
parent
a92e7b1a9f
commit
ab378803ef
|
@ -2934,6 +2934,10 @@ static UINT ITERATE_CreateShortcuts(MSIRECORD *row, LPVOID param)
|
||||||
Path = build_icon_path(package,buffer);
|
Path = build_icon_path(package,buffer);
|
||||||
index = MSI_RecordGetInteger(row,10);
|
index = MSI_RecordGetInteger(row,10);
|
||||||
|
|
||||||
|
/* no value means 0 */
|
||||||
|
if (index == MSI_NULL_INTEGER)
|
||||||
|
index = 0;
|
||||||
|
|
||||||
IShellLinkW_SetIconLocation(sl,Path,index);
|
IShellLinkW_SetIconLocation(sl,Path,index);
|
||||||
msi_free(Path);
|
msi_free(Path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue