FLTK logo

[master] b105dd7 - Error string that was created is now saved with errmsg()

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] b105dd7 - Error string that was created is now saved with errmsg() "Greg Ercolano" Aug 07, 2020  
 
commit b105dd726fc43405bf4388cce018097fb11febfd
Author:     Greg Ercolano <erco@seriss.com>
AuthorDate: Fri Aug 7 16:29:52 2020 -0700
Commit:     Greg Ercolano <erco@seriss.com>
CommitDate: Fri Aug 7 16:29:52 2020 -0700

    Error string that was created is now saved with errmsg()

 src/Fl_Native_File_Chooser_WIN32.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git src/Fl_Native_File_Chooser_WIN32.cxx src/Fl_Native_File_Chooser_WIN32.cxx
index 594afd5..580e6e2 100644
--- src/Fl_Native_File_Chooser_WIN32.cxx
+++ src/Fl_Native_File_Chooser_WIN32.cxx
@@ -438,6 +438,7 @@ int Fl_WinAPI_Native_File_Chooser_Driver::showfile() {
     if ( len >= _ofn_ptr->nMaxFile ) {
       char msg[80];
       sprintf(msg, "preset_file() filename is too long: %ld is >=%ld", (long)len, (long)fsize);
+      errmsg(msg);
       return(-1);
     }
     wcscpy(_ofn_ptr->lpstrFile, utf8towchar(_preset_file));
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.