summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-07-18 19:50:19 (GMT)
committerhobbs <hobbs>2003-07-18 19:50:19 (GMT)
commitb6259490933ef6a5ab0a8e383c48783cbe2104ad (patch)
treed90ff5282a4f3b1bac93b71cdf7b1cadd2e3de68
parent9fb73e61b88bcf30bfb77d8e2e07ba28bf0d2b1c (diff)
downloadtk-b6259490933ef6a5ab0a8e383c48783cbe2104ad.zip
tk-b6259490933ef6a5ab0a8e383c48783cbe2104ad.tar.gz
tk-b6259490933ef6a5ab0a8e383c48783cbe2104ad.tar.bz2
* win/tkWinDialog.c: doubled the TK_MULTI_MAX_PATH value to ~10K.
This is a short-term solution until the -multiple option is extended. [Bug 641261]
-rw-r--r--ChangeLog6
-rw-r--r--win/tkWinDialog.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index eafc1b4..b9c2074 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-18 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * win/tkWinDialog.c: doubled the TK_MULTI_MAX_PATH value to ~10K.
+ This is a short-term solution until the -multiple option is
+ extended. [Bug 641261]
+
2003-07-18 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tkWindow.c:
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 327d0ad..852eb00 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinDialog.c,v 1.30 2003/01/14 01:20:55 mdejong Exp $
+ * RCS: @(#) $Id: tkWinDialog.c,v 1.31 2003/07/18 19:50:20 hobbs Exp $
*
*/
@@ -119,10 +119,10 @@ static const struct {int type; int btnIds[3];} allowedTypes[] = {
* be retrieved with tk_get*File -multiple 1. It must be allocated
* on the stack, so make it large enough but not too large. -- hobbs
* The data is stored as <dir>\0<file1>\0<file2>\0...<fileN>\0\0.
- * MAX_PATH == 260 on Win2K/NT.
+ * MAX_PATH == 260 on Win2K/NT, so *40 is ~10K.
*/
-#define TK_MULTI_MAX_PATH (MAX_PATH*20)
+#define TK_MULTI_MAX_PATH (MAX_PATH*40)
/*
* The following structure is used to pass information between the directory