Skip to content

Commit 447975d

Browse files
committed
fix shortcut icons
svn path=/trunk/; revision=27616
1 parent 277f271 commit 447975d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reactos/dll/win32/syssetup/install.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ static BOOL
143143
CreateShortcut(int csidl, LPCTSTR folder, UINT nIdName, LPCTSTR command, UINT nIdTitle, BOOL bCheckExistence)
144144
{
145145
TCHAR path[MAX_PATH];
146+
TCHAR exeName[MAX_PATH];
146147
TCHAR title[256];
147148
TCHAR name[256];
148149
LPTSTR p = path;
@@ -172,7 +173,8 @@ CreateShortcut(int csidl, LPCTSTR folder, UINT nIdName, LPCTSTR command, UINT nI
172173
&lpFilePart);
173174
if (dwLen != 0 && dwLen <= sizeof(szWorkingDir) / sizeof(szWorkingDir[0]))
174175
{
175-
/* Successfully determined the file path */
176+
/* Save the file name */
177+
_tcscpy(exeName, lpFilePart);
176178

177179
if (lpFilePart != NULL)
178180
{
@@ -209,7 +211,7 @@ CreateShortcut(int csidl, LPCTSTR folder, UINT nIdName, LPCTSTR command, UINT nI
209211
if (!LoadString(hDllInstance, nIdTitle, title, sizeof(title)/sizeof(title[0])))
210212
return FALSE;
211213

212-
return SUCCEEDED(CreateShellLink(path, command, _T(""), lpWorkingDir, NULL, 0, title));
214+
return SUCCEEDED(CreateShellLink(path, exeName, _T(""), lpWorkingDir, NULL, 0, title));
213215
}
214216

215217

0 commit comments

Comments
 (0)