[shell32]

partial shelllink winesync to wine 1.1.35 (fixes a memory leak)

svn path=/trunk/; revision=44727
This commit is contained in:
Christoph von Wittich
2009-12-23 11:17:00 +00:00
parent 859058ed4b
commit 16efd1a5a0
+3
View File
@@ -2184,7 +2184,10 @@ static HRESULT WINAPI IShellLinkW_fnSetPath(IShellLinkW * iface, LPCWSTR pszFile
/* any other quote marks are invalid */
if (wcschr(pszFile, '"'))
{
HeapFree(GetProcessHeap(), 0, unquoted);
return S_FALSE;
}
HeapFree(GetProcessHeap(), 0, This->sPath);
This->sPath = NULL;