From 8f7003bb7fd7b4ee20a4a1d847f0dbb0fdffadef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vincent=20B=C3=A9ron?= Date: Wed, 18 Aug 2004 23:40:15 +0000 Subject: [PATCH] Don't hardcode C:\windows\system\start.exe. --- programs/winemenubuilder/winemenubuilder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c index a2d13658b9a..82c3063ef62 100644 --- a/programs/winemenubuilder/winemenubuilder.c +++ b/programs/winemenubuilder/winemenubuilder.c @@ -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] ); -- 2.11.4.GIT