Johannes Anderwald:
- Partly revert 48786
- Use existing sLinkPath instead of own grown sCurFile
- Fixes 6 more winetest failures, 4 to go for shellink test
svn path=/trunk/; revision=48792
- HeapFree(GetProcessHeap(), 0, This->sCurFile);
+ HeapFree(GetProcessHeap(), 0, This->sLinkPath);
- This->sCurFile = HeapAlloc(GetProcessHeap(), 0, (wcslen(pszFileName)+1) * sizeof(WCHAR));
- if ( This->sCurFile )
+ This->sLinkPath = HeapAlloc(GetProcessHeap(), 0, (wcslen(pszFileName)+1) * sizeof(WCHAR));
+ if ( This->sLinkPath )
- wcscpy(This->sCurFile, pszFileName);
+ wcscpy(This->sLinkPath, pszFileName);
}
StartLinkProcessor( pszFileName );
}
StartLinkProcessor( pszFileName );
{
/* IPersistFile::GetCurFile called before IPersistFile::Save */
return S_FALSE;
}
{
/* IPersistFile::GetCurFile called before IPersistFile::Save */
return S_FALSE;
}
- *ppszFileName = CoTaskMemAlloc((wcslen(This->sCurFile)+1) * sizeof(WCHAR));
+ *ppszFileName = CoTaskMemAlloc((wcslen(This->sLinkPath)+1) * sizeof(WCHAR));
if (!*ppszFileName)
{
/* out of memory */
if (!*ppszFileName)
{
/* out of memory */
}
/* copy last saved filename */
}
/* copy last saved filename */
- wcscpy(*ppszFileName, This->sCurFile);
+ wcscpy(*ppszFileName, This->sLinkPath);