Author: gedmurphy
Date: Thu Jul 12 19:50:19 2007
New Revision: 27616
URL:
http://svn.reactos.org/svn/reactos?rev=27616&view=rev
Log:
fix shortcut icons
Modified:
trunk/reactos/dll/win32/syssetup/install.c
Modified: trunk/reactos/dll/win32/syssetup/install.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/install.c (original)
+++ trunk/reactos/dll/win32/syssetup/install.c Thu Jul 12 19:50:19 2007
@@ -143,6 +143,7 @@
CreateShortcut(int csidl, LPCTSTR folder, UINT nIdName, LPCTSTR command, UINT nIdTitle,
BOOL bCheckExistence)
{
TCHAR path[MAX_PATH];
+ TCHAR exeName[MAX_PATH];
TCHAR title[256];
TCHAR name[256];
LPTSTR p = path;
@@ -172,7 +173,8 @@
&lpFilePart);
if (dwLen != 0 && dwLen <= sizeof(szWorkingDir) /
sizeof(szWorkingDir[0]))
{
- /* Successfully determined the file path */
+ /* Save the file name */
+ _tcscpy(exeName, lpFilePart);
if (lpFilePart != NULL)
{
@@ -209,7 +211,7 @@
if (!LoadString(hDllInstance, nIdTitle, title, sizeof(title)/sizeof(title[0])))
return FALSE;
- return SUCCEEDED(CreateShellLink(path, command, _T(""), lpWorkingDir, NULL,
0, title));
+ return SUCCEEDED(CreateShellLink(path, exeName, _T(""), lpWorkingDir, NULL,
0, title));
}