From e78b6c517934905bfe8e9bba52fc0547295af0cc Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 19 Feb 2017 13:00:12 +0000 Subject: [PATCH] [SHELL32] Don't attempt to dereference a pointer after having freed it CID 1401297 svn path=/trunk/; revision=73844 --- reactos/dll/win32/shell32/CShellLink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/shell32/CShellLink.cpp b/reactos/dll/win32/shell32/CShellLink.cpp index 872e0ca5a0b..f10cf927ebf 100644 --- a/reactos/dll/win32/shell32/CShellLink.cpp +++ b/reactos/dll/win32/shell32/CShellLink.cpp @@ -1072,7 +1072,7 @@ HRESULT STDMETHODCALLTYPE CShellLink::GetPath(LPSTR pszFile, INT cchMaxPath, WIN ZeroMemory(pfd, sizeof(*pfd)); /* Copy the file data if a file path was returned */ - if (*pszFileW) + if (*pszFile) { /* Copy the fixed part */ CopyMemory(pfd, &wfd, FIELD_OFFSET(WIN32_FIND_DATAA, cFileName)); @@ -3050,4 +3050,4 @@ HRESULT WINAPI IShellLink_ConstructFromFile(IShellFolder * psf, LPCITEMIDLIST pi return E_FAIL; return IShellLink_ConstructFromPath(path, riid, ppv); -} \ No newline at end of file +} -- 2.17.1