mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:15:59 +00:00
Fix abusing the heap by using strdupW instead of _wcsdup
svn path=/trunk/; revision=30021
This commit is contained in:
parent
d624225717
commit
596a6762cf
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue