mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 05:51:26 +08:00
[SHELL32] CDefView: Don't assume that SetNameOf always works properly so initialize pidlNew to NULL before
CORE-14116
This commit is contained in:
@@ -1860,7 +1860,7 @@ LRESULT CDefView::OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandl
|
||||
LVITEMW lvItem;
|
||||
|
||||
pidl = _PidlByItem(lpdi->item);
|
||||
PITEMID_CHILD pidlNew;
|
||||
PITEMID_CHILD pidlNew = NULL;
|
||||
hr = m_pSFParent->SetNameOf(0, pidl, lpdi->item.pszText, SHGDN_INFOLDER, &pidlNew);
|
||||
|
||||
if (SUCCEEDED(hr) && pidlNew)
|
||||
|
||||
Reference in New Issue
Block a user