mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:45:41 +00:00
[SHELL32]
- Fix a hack that broke copying files after recent fixes. svn path=/trunk/; revision=68892
This commit is contained in:
parent
e441f06d17
commit
4a52a2ec13
1 changed files with 4 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue