From: sdottaka Date: Sun, 21 Apr 2013 12:35:14 +0000 (+0900) Subject: Fix: OpenView does not accept Drag&Droped three files X-Git-Tag: 2.16.5~1656 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8f8d1eef2c601750cd6e35b7a507204b7ed903d7;p=winmerge-jp%2Fwinmerge-jp.git Fix: OpenView does not accept Drag&Droped three files --- 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++;