winemenubuilder: Expand environment strings in the shortcut path.

This commit is contained in:
Hans Leidekker 2010-05-14 15:35:55 +02:00 committed by Alexandre Julliard
parent df260d14a6
commit 3c31a373d3
1 changed files with 2 additions and 1 deletions

View File

@ -2254,7 +2254,8 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link, BOOL bWait )
ExpandEnvironmentStringsW(szTmp, szDescription, INFOTIPSIZE);
WINE_TRACE("description: %s\n", wine_dbgstr_w(szDescription));
get_cmdline( sl, szPath, MAX_PATH, szArgs, INFOTIPSIZE);
get_cmdline( sl, szTmp, MAX_PATH, szArgs, INFOTIPSIZE);
ExpandEnvironmentStringsW(szTmp, szPath, MAX_PATH);
WINE_TRACE("path : %s\n", wine_dbgstr_w(szPath));
WINE_TRACE("args : %s\n", wine_dbgstr_w(szArgs));