[ImageResizer]Check for files in HDropIterator before processing (#20985)

This commit is contained in:
Stefan Markovic
2022-10-03 12:13:48 +02:00
committed by GitHub
parent 5e955f034e
commit 6d531a9a6b
2 changed files with 18 additions and 4 deletions

View File

@@ -72,6 +72,11 @@ HRESULT CContextMenuHandler::QueryContextMenu(_In_ HMENU hmenu, UINT indexMenu,
// NB: We just check the first item. We could iterate through more if the first one doesn't meet the criteria
HDropIterator i(m_pdtobj);
i.First();
if (i.IsDone())
{
return S_OK;
}
// Suppressing C26812 warning as the issue is in the shtypes.h library
#pragma warning(suppress : 26812)
PERCEIVED type;