Author: jonathanosx
Date: Mon Dec 28 20:27:06 2015
New Revision: 39241

URL: http://svn.gna.org/viewcvs/gnustep?rev=39241&view=rev
Log:
Increase File Buffer Size, specifically to handle multipe returns from an open 
file dialogue

Modified:
    plugins/themes/WinUXTheme/WinNSOpenPanel.m

Modified: plugins/themes/WinUXTheme/WinNSOpenPanel.m
URL: 
http://svn.gna.org/viewcvs/gnustep/plugins/themes/WinUXTheme/WinNSOpenPanel.m?rev=39241&r1=39240&r2=39241&view=diff
==============================================================================
--- plugins/themes/WinUXTheme/WinNSOpenPanel.m  (original)
+++ plugins/themes/WinUXTheme/WinNSOpenPanel.m  Mon Dec 28 20:27:06 2015
@@ -38,7 +38,7 @@
 
 // Flag to indicate that a folder was selected.
 #define FOLDER_SELECTED 0xFFFFFFFF
-
+#define FILE_BUFFER_SIZE 9128
 /**
  * Callback function to handle events from the save/open dialog.
  */
@@ -272,7 +272,7 @@
 
 @interface WinNSOpenPanel : NSOpenPanel
 {
-  unichar szFile[1024];
+  unichar szFile[FILE_BUFFER_SIZE];
   OPENFILENAMEW ofn;
   BROWSEINFO folderBrowser;
   NSArray *filenames;
@@ -282,7 +282,7 @@
 
 @interface WinNSSavePanel : NSSavePanel
 {
-  unichar szFile[1024];
+  unichar szFile[FILE_BUFFER_SIZE];
   OPENFILENAMEW ofn;
   NSString *filename;
 }
@@ -299,7 +299,7 @@
       ofn.lStructSize = sizeof(ofn);
       ofn.lpstrFile = szFile;
       ofn.lpstrFile[0] = '\0';
-      ofn.nMaxFile = 1024;
+      ofn.nMaxFile = FILE_BUFFER_SIZE;
       ofn.lpstrFileTitle = NULL;
       ofn.nMaxFileTitle = 0;
       ofn.lpstrInitialDir = NULL;
@@ -505,7 +505,7 @@
       ofn.lStructSize = sizeof(ofn);
       ofn.lpstrFile = szFile;
       ofn.lpstrFile[0] = '\0';
-      ofn.nMaxFile = 1024;
+      ofn.nMaxFile = FILE_BUFFER_SIZE;
       ofn.lpstrFileTitle = NULL;
       ofn.nMaxFileTitle = 0;
       ofn.lpstrInitialDir = NULL;


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to