Commit 8f7003bb authored by Vincent Béron's avatar Vincent Béron Committed by Alexandre Julliard

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

parent 905e75f8
......@@ -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] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment