Author: weiden Date: Wed Oct 31 21:14:16 2007 New Revision: 30021
URL: http://svn.reactos.org/svn/reactos?rev=30021&view=rev Log: Fix abusing the heap by using strdupW instead of _wcsdup
Modified: trunk/reactos/dll/win32/shell32/shelllink.c
Modified: trunk/reactos/dll/win32/shell32/shelllink.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shelllink... ============================================================================== --- trunk/reactos/dll/win32/shell32/shelllink.c (original) +++ trunk/reactos/dll/win32/shell32/shelllink.c Wed Oct 31 21:14:16 2007 @@ -392,7 +392,7 @@ if( SUCCEEDED( r ) ) { HeapFree(GetProcessHeap(), 0, This->sLinkPath); - This->sLinkPath = _wcsdup(pszFileName); + This->sLinkPath = strdupW(pszFileName); r = IPersistStream_Load(StreamThis, stm); ShellLink_UpdatePath(This->sPathRel, pszFileName, This->sWorkDir, &This->sPath); IStream_Release( stm );