From 91bbbdf8a6cd3c40fd20a35addb8d21bf770d705 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 22 Sep 2002 11:36:52 +0000 Subject: [PATCH] Fixed bug [ 495532 ] wxFileDialog limits multiple file load "The wxMAXPATH constant prevents the loading of multiple file names in a multiple selection dialog when selecting a large number of files. The number of selected files can easily exceed the memory allocated to store the selected file names and paths." I'm increasing the buffer size to 65536 which should be adequate for most purposes. There's apparently no way to work around the fixed buffer size. -- JACS git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/filedlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index 94a4e60b58..fab7ec98ee 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -61,7 +61,7 @@ // ---------------------------------------------------------------------------- #ifdef __WIN32__ -# define wxMAXPATH 4096 +# define wxMAXPATH 65536 #else # define wxMAXPATH 1024 #endif