[ros-diffs] [gedmurphy] 27616: fix shortcut icons

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Thu Jul 12 17:50:20 CEST 2007


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.c?rev=27616&r1=27615&r2=27616&view=diff
==============================================================================
--- 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));
 }
 
 




More information about the Ros-diffs mailing list