[SHELL32] Add SHFileOp error UI and use it for CFSFolder renaming (#7858)

This commit is contained in:
Whindmar Saksit 2025-04-04 20:34:52 +02:00 committed by GitHub
parent 774b3a6e1d
commit ac3ecb2b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 225 additions and 84 deletions

View file

@ -2821,8 +2821,8 @@ LRESULT CDefView::OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandl
}
WCHAR szName[MAX_PATH], *pszText = lpdi->item.pszText;
if (SUCCEEDED(Shell_DisplayNameOf(m_pSFParent, pidl, SHGDN_FOREDITING | SHGDN_INFOLDER,
szName, _countof(szName))))
if (SUCCEEDED(DisplayNameOfW(m_pSFParent, pidl, SHGDN_FOREDITING | SHGDN_INFOLDER,
szName, _countof(szName))))
{
pszText = szName;
::SetWindowText(hEdit, pszText);
@ -2875,6 +2875,7 @@ LRESULT CDefView::OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandl
ILFree(pidlNew);// A SHCNE has updated the item already
else if (!LV_UpdateItem(lpdi->item.iItem, pidlNew))
ILFree(pidlNew);
OnStateChange(CDBOSC_RENAME);
}
else
{