Author: pschweitzer Date: Sun Feb 19 13:00:12 2017 New Revision: 73844
URL: http://svn.reactos.org/svn/reactos?rev=73844&view=rev Log: [SHELL32] Don't attempt to dereference a pointer after having freed it
CID 1401297
Modified: trunk/reactos/dll/win32/shell32/CShellLink.cpp
Modified: trunk/reactos/dll/win32/shell32/CShellLink.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/CShellLin... ============================================================================== --- trunk/reactos/dll/win32/shell32/CShellLink.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/CShellLink.cpp [iso-8859-1] Sun Feb 19 13:00:12 2017 @@ -1072,7 +1072,7 @@ 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 @@ return E_FAIL;
return IShellLink_ConstructFromPath(path, riid, ppv); -} +}