https://git.reactos.org/?p=reactos.git;a=commitdiff;h=92e5fabb55b4d96ef19d4…
commit 92e5fabb55b4d96ef19d4c94ec53be9659aef58c
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Fri Jun 7 00:14:40 2019 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Jun 8 20:05:54 2019 +0200
[BROWSEUI] Fix SHEnumClassesOfCategories() parameter validation. (#1622)
Addendum to fdfef818. CORE-11711
---
dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp
b/dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp
index 7f448a2f1c..1a1803a334 100644
--- a/dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp
+++ b/dll/win32/browseui/shellbars/CSHEnumClassesOfCategories.cpp
@@ -337,6 +337,9 @@ extern "C" HRESULT WINAPI SHEnumClassesOfCategories(ULONG
cImplemented, CATID *p
{
HRESULT hr;
+ if (!out)
+ return E_INVALIDARG;
+
hr = ShellObjectCreatorInit<CSHEnumClassesOfCategories>(
cImplemented, pImplemented, cRequired, pRequired, IID_PPV_ARG(IEnumGUID,
out));
if (FAILED_UNEXPECTEDLY(hr))