https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6a9696f10b4b2de7b1d398477cd8f76bce33fe0f

commit 6a9696f10b4b2de7b1d398477cd8f76bce33fe0f
Author:     Mark Jansen <[email protected]>
AuthorDate: Thu Sep 1 21:55:04 2022 +0200
Commit:     Mark Jansen <[email protected]>
CommitDate: Fri Oct 14 21:04:19 2022 +0200

    [SHELL32] CFolderItemVerb: Zero-initialize output parameters
---
 dll/win32/shell32/CFolderItemVerbs.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dll/win32/shell32/CFolderItemVerbs.cpp 
b/dll/win32/shell32/CFolderItemVerbs.cpp
index 0397f724f8e..775f342f737 100644
--- a/dll/win32/shell32/CFolderItemVerbs.cpp
+++ b/dll/win32/shell32/CFolderItemVerbs.cpp
@@ -42,12 +42,20 @@ void CFolderItemVerb::Init(IContextMenu* menu, BSTR name)
 HRESULT STDMETHODCALLTYPE CFolderItemVerb::get_Application(IDispatch **ppid)
 {
     TRACE("(%p, %p)\n", this, ppid);
+
+    if (ppid)
+        *ppid = NULL;
+
     return E_NOTIMPL;
 }
 
 HRESULT STDMETHODCALLTYPE CFolderItemVerb::get_Parent(IDispatch **ppid)
 {
     TRACE("(%p, %p)\n", this, ppid);
+
+    if (ppid)
+        *ppid = NULL;
+
     return E_NOTIMPL;
 }
 

Reply via email to