Don't hardcode C:\windows\system\start.exe.

This commit is contained in:
Vincent Béron 2004-08-18 23:40:15 +00:00 committed by Alexandre Julliard
parent 905e75f8e9
commit 8f7003bb7f
1 changed files with 3 additions and 1 deletions

View File

@ -769,7 +769,9 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
{
/* if there's no path... try run the link itself */
WideCharToMultiByte( CP_ACP, 0, link, -1, szArgs, MAX_PATH, NULL, NULL );
strcpy(szPath, "C:\\Windows\\System\\start.exe");
GetWindowsDirectoryA(szPath, MAX_PATH);
strncat(szPath, "\\command\\start.exe",
MAX_PATH - GetWindowsDirectoryA(NULL, 0));
}
link_name = cleanup_link( &link[ofs] );