From: Pierre Schweitzer Date: Sun, 19 Feb 2017 13:00:12 +0000 (+0000) Subject: [SHELL32] X-Git-Tag: ReactOS-0.4.4-CLT2017~246 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=e78b6c517934905bfe8e9bba52fc0547295af0cc;hp=23733b786744899708e1df660625d68230274b21 [SHELL32] Don't attempt to dereference a pointer after having freed it CID 1401297 svn path=/trunk/; revision=73844 --- 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 +}