From 596a6762cfcc832917572d87fe8a92125c5c92da Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 31 Oct 2007 18:14:16 +0000 Subject: [PATCH] Fix abusing the heap by using strdupW instead of _wcsdup svn path=/trunk/; revision=30021 --- reactos/dll/win32/shell32/shelllink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/shell32/shelllink.c b/reactos/dll/win32/shell32/shelllink.c index 8ac305c77e5..717579786e2 100644 --- a/reactos/dll/win32/shell32/shelllink.c +++ b/reactos/dll/win32/shell32/shelllink.c @@ -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 );