Skip to content

Commit

Permalink
Create shortcut with icon path specified to help conhost find icon
Browse files Browse the repository at this point in the history
  • Loading branch information
malxau committed May 28, 2020
1 parent 4f2dfe1 commit 5af366b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ysetup/ysetup.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ SetupInstallSelectedFromDialog(
goto Exit;
}
ShortcutCount++;
if (!YoriLibCreateShortcut(&ShortcutNameFullPath[ShortcutCount - 1], &YoriExeFullPath, NULL, &Description, NULL, NULL, 0, 1, (WORD)-1, TRUE, TRUE)) {
if (!YoriLibCreateShortcut(&ShortcutNameFullPath[ShortcutCount - 1], &YoriExeFullPath, NULL, &Description, NULL, &YoriExeFullPath, 0, 1, (WORD)-1, TRUE, TRUE)) {
YoriLibFreeStringContents(&YoriExeFullPath);
MessageBox(hDlg, _T("Failed to create desktop shortcut."), _T("Installation failed."), MB_ICONSTOP);
goto Exit;
Expand All @@ -431,7 +431,7 @@ SetupInstallSelectedFromDialog(
goto Exit;
}
ShortcutCount++;
if (!YoriLibCreateShortcut(&ShortcutNameFullPath[ShortcutCount - 1], &YoriExeFullPath, NULL, &Description, NULL, NULL, 0, 1, (WORD)-1, TRUE, TRUE)) {
if (!YoriLibCreateShortcut(&ShortcutNameFullPath[ShortcutCount - 1], &YoriExeFullPath, NULL, &Description, NULL, &YoriExeFullPath, 0, 1, (WORD)-1, TRUE, TRUE)) {
YoriLibFreeStringContents(&YoriExeFullPath);
MessageBox(hDlg, _T("Failed to create start menu shortcut."), _T("Installation failed."), MB_ICONSTOP);
goto Exit;
Expand Down

0 comments on commit 5af366b

Please sign in to comment.