winemenubuilder: Silence out of bounds compiler warning.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-11-26 20:45:02 +01:00
parent 6624cabbb7
commit 981d69ada6
1 changed files with 1 additions and 1 deletions

View File

@ -2902,7 +2902,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link, BOOL bWait )
szArgs[0] = '"';
lstrcpyW(szArgs + 1, szPath);
p[-1] = '"';
szArgs[lstrlenW(szArgs)] = '"';
GetWindowsDirectoryW(szPath, MAX_PATH);
lstrcatW(szPath, startW);