From 16efd1a5a0fbbe65c111deffa3bda5fe3845c4d1 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 23 Dec 2009 11:17:00 +0000 Subject: [PATCH] [shell32] partial shelllink winesync to wine 1.1.35 (fixes a memory leak) svn path=/trunk/; revision=44727 --- reactos/dll/win32/shell32/shelllink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/dll/win32/shell32/shelllink.c b/reactos/dll/win32/shell32/shelllink.c index 6ad7b174d38..5e05bc59a94 100644 --- a/reactos/dll/win32/shell32/shelllink.c +++ b/reactos/dll/win32/shell32/shelllink.c @@ -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;