Skip to content

Commit 206c0a4

Browse files
committed
don't crash in msi install winetest
svn path=/trunk/; revision=43737
1 parent 83e2004 commit 206c0a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reactos/dll/win32/shell32/shelllink.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,6 +2169,8 @@ static HRESULT WINAPI IShellLinkW_fnSetPath(IShellLinkW * iface, LPCWSTR pszFile
21692169

21702170
TRACE("(%p)->(path=%s)\n",This, debugstr_w(pszFile));
21712171

2172+
if (!pszFile) return E_INVALIDARG;
2173+
21722174
/* quotes at the ends of the string are stripped */
21732175
len = wcslen(pszFile);
21742176
if (pszFile[0] == '"' && pszFile[len-1] == '"')

0 commit comments

Comments
 (0)