From 8f8d1eef2c601750cd6e35b7a507204b7ed903d7 Mon Sep 17 00:00:00 2001 From: sdottaka Date: Sun, 21 Apr 2013 21:35:14 +0900 Subject: [PATCH] Fix: OpenView does not accept Drag&Droped three files --- Src/OpenView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/OpenView.cpp b/Src/OpenView.cpp index 21c28edee..db48413f9 100644 --- a/Src/OpenView.cpp +++ b/Src/OpenView.cpp @@ -934,7 +934,7 @@ void COpenView::OnDropFiles(HDROP dropInfo) { // Get the number of pathnames that have been dropped UINT wNumFilesDropped = DragQueryFile(dropInfo, 0xFFFFFFFF, NULL, 0); - CString files[2]; + CString files[3]; UINT fileCount = 0; // get all file names. but we'll only need the first one. @@ -950,7 +950,7 @@ void COpenView::OnDropFiles(HDROP dropInfo) // Copy the pathname into the buffer DragQueryFile(dropInfo, x, npszFile.get(), wPathnameSize); - if (x < 2) + if (x < 3) { files[x] = npszFile.get(); fileCount++; -- 2.11.0