mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:53:02 +00:00
[SHELL32] CDefView: Don't assume that SetNameOf always works properly so initialize pidlNew to NULL before
CORE-14116
This commit is contained in:
parent
f66f58991c
commit
bcd309cb7a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue