OSDN Git Service

Fix code scanning alerts: Comparison of narrow type with wide type in loop condition
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Tue, 23 Nov 2021 01:33:23 +0000 (10:33 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Tue, 23 Nov 2021 01:33:23 +0000 (10:33 +0900)
Src/DropHandler.cpp

index 59ce018..6315a59 100644 (file)
@@ -46,7 +46,7 @@ namespace
                UINT wNumFilesDropped = DragQueryFile(dropInfo, 0xFFFFFFFF, nullptr, 0);
 
                // get all file names. but we'll only need the first one.
-               for (WORD x = 0; x < wNumFilesDropped; x++)
+               for (UINT x = 0; x < wNumFilesDropped; x++)
                {
                        // Get the number of bytes required by the file's full pathname
                        UINT wPathnameSize = DragQueryFile(dropInfo, x, nullptr, 0);