[SHELL32]

- Fix a hack that broke copying files after recent fixes.

svn path=/trunk/; revision=68892
This commit is contained in:
Giannis Adamopoulos 2015-09-01 10:18:40 +00:00
parent e441f06d17
commit 4a52a2ec13

View file

@ -1034,7 +1034,6 @@ HRESULT WINAPI CFSFolder::CopyItems(IShellFolder * pSFFrom, UINT cidl,
LPWSTR pszSrc, pszTarget, pszSrcList, pszTargetList, pszFileName;
int res, length;
HRESULT hr;
STRRET strRet;
TRACE ("(%p)->(%p,%u,%p)\n", this, pSFFrom, cidl, apidl);
@ -1047,21 +1046,12 @@ HRESULT WINAPI CFSFolder::CopyItems(IShellFolder * pSFFrom, UINT cidl,
return hr;
}
hr = pSFFrom->GetDisplayNameOf(pidl, SHGDN_FORPARSING, &strRet);
if (FAILED(hr))
{
SHFree(pidl);
return hr;
}
hr = StrRetToBufW(&strRet, pidl, szSrcPath, MAX_PATH);
if (FAILED(hr))
{
SHFree(pidl);
return hr;
}
hr = SHGetPathFromIDListW(pidl, szSrcPath);
SHFree(pidl);
if (FAILED(hr))
return hr;
pszSrc = PathAddBackslashW(szSrcPath);
wcscpy(szTargetPath, sPathTarget);