https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bcd309cb7ad3a6f1008a8…
commit bcd309cb7ad3a6f1008a8b54f5e4e248e7593bba
Author: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
AuthorDate: Sun Nov 11 12:27:55 2018 +0200
Commit: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
CommitDate: Sun Nov 11 20:28:27 2018 +0200
[SHELL32] CDefView: Don't assume that SetNameOf always works properly so
initialize pidlNew to NULL before
CORE-14116
---
dll/win32/shell32/CDefView.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/shell32/CDefView.cpp b/dll/win32/shell32/CDefView.cpp
index 0032366568..640bb143ff 100644
--- a/dll/win32/shell32/CDefView.cpp
+++ b/dll/win32/shell32/CDefView.cpp
@@ -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)