Fix abusing the heap by using strdupW instead of _wcsdup

svn path=/trunk/; revision=30021
This commit is contained in:
Thomas Bluemel 2007-10-31 18:14:16 +00:00
parent d624225717
commit 596a6762cf

View file

@ -392,7 +392,7 @@ static HRESULT WINAPI IPersistFile_fnLoad(IPersistFile* iface, LPCOLESTR pszFile
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 );