https://git.reactos.org/?p=reactos.git;a=commitdiff;h=22e58e68aa35a1ba49d28…
commit 22e58e68aa35a1ba49d280b12f99f7f03f5f8633
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Thu Sep 30 20:44:05 2021 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Fri Oct 1 17:40:01 2021 +0200
[SHELL32] Fix uninitialized variable usage.
This fixes log spam about NM_CUSTOMDRAW not being handled
---
dll/win32/shell32/shellmenu/CMenuToolbars.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dll/win32/shell32/shellmenu/CMenuToolbars.cpp
b/dll/win32/shell32/shellmenu/CMenuToolbars.cpp
index 05ecbdfc8f8..9044e134359 100644
--- a/dll/win32/shell32/shellmenu/CMenuToolbars.cpp
+++ b/dll/win32/shell32/shellmenu/CMenuToolbars.cpp
@@ -258,6 +258,10 @@ HRESULT CMenuToolbarBase::OnCustomDraw(LPNMTBCUSTOMDRAW cdraw,
LRESULT * theResu
}
*theResult = TRUE;
return S_OK;
+
+ default:
+ *theResult = 0L;
+ break;
}
return S_OK;
}