https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c04010c9ad938b9118de2…
commit c04010c9ad938b9118de2c46ec590687978d79f0
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sun Apr 26 12:30:58 2020 +0900
Commit: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
CommitDate: Sun Apr 26 13:21:14 2020 +0300
[SHELL32] Update name in CDefView::LV_RenameItems
---
dll/win32/shell32/CDefView.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/win32/shell32/CDefView.cpp b/dll/win32/shell32/CDefView.cpp
index 08fbd594b14..fbca53391f7 100644
--- a/dll/win32/shell32/CDefView.cpp
+++ b/dll/win32/shell32/CDefView.cpp
@@ -842,10 +842,11 @@ BOOLEAN CDefView::LV_RenameItem(PCUITEMID_CHILD pidlOld,
PCUITEMID_CHILD pidlNew
m_ListView.GetItem(&lvItem);
SHFree(reinterpret_cast<LPVOID>(lvItem.lParam));
- lvItem.mask = LVIF_PARAM|LVIF_IMAGE;
+ lvItem.mask = LVIF_PARAM | LVIF_IMAGE | LVIF_TEXT;
lvItem.iItem = nItem;
lvItem.iSubItem = 0;
lvItem.lParam = reinterpret_cast<LPARAM>(ILClone(pidlNew)); /* set the
item's data */
+ lvItem.pszText = LPSTR_TEXTCALLBACKW;
lvItem.iImage = SHMapPIDLToSystemImageListIndex(m_pSFParent, pidlNew, 0);
m_ListView.SetItem(&lvItem);
m_ListView.Update(nItem);