From 29310d6f925242aea4c72d16115f182e35c284d0 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Tue, 29 Nov 2016 15:44:19 +0000 Subject: [PATCH 1/1] [SHELL32] - CDefaultContextMenu::QueryContextMenu : Implement CMF_VERBSONLY flag (needs tests). CORE-11488 (and all its duplicates) svn path=/trunk/; revision=73406 --- reactos/dll/win32/shell32/CDefaultContextMenu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/dll/win32/shell32/CDefaultContextMenu.cpp b/reactos/dll/win32/shell32/CDefaultContextMenu.cpp index 1483ee65dbf..59f4cfc2df5 100644 --- a/reactos/dll/win32/shell32/CDefaultContextMenu.cpp +++ b/reactos/dll/win32/shell32/CDefaultContextMenu.cpp @@ -673,6 +673,9 @@ CDefaultContextMenu::QueryContextMenu( _DoCallback(DFM_MERGECONTEXTMENU, uFlags, &qcminfo); IndexMenu = GetMenuItemCount(hMenu); + if (uFlags & CMF_VERBSONLY) + return S_OK; + /* If this is a background context menu we are done */ if (!m_cidl) return S_OK; -- 2.17.1