From 9a256fcbfe252586216e9cce7f0e28571431be17 Mon Sep 17 00:00:00 2001 From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Sat, 7 Sep 2019 21:42:10 +0200 Subject: [PATCH] usage of UINT as iterator here because comparing with UINT retval from DragQueryFile Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- shell_integration/windows/OCContextMenu/OCContextMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell_integration/windows/OCContextMenu/OCContextMenu.cpp b/shell_integration/windows/OCContextMenu/OCContextMenu.cpp index 9356187fe..582783f48 100644 --- a/shell_integration/windows/OCContextMenu/OCContextMenu.cpp +++ b/shell_integration/windows/OCContextMenu/OCContextMenu.cpp @@ -89,7 +89,7 @@ IFACEMETHODIMP OCContextMenu::Initialize( HDROP hDrop = static_cast(GlobalLock(stm.hGlobal)); if (hDrop) { UINT nFiles = DragQueryFile(hDrop, 0xFFFFFFFF, NULL, 0); - for (int i = 0; i < nFiles; ++i) { + for (UINT i = 0; i < nFiles; ++i) { // Get the path of the file. wchar_t buffer[MAX_PATH];