From b105dd726fc43405bf4388cce018097fb11febfd Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 7 Aug 2020 16:29:52 -0700 Subject: 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 a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx index 594afd53e..580e6e23a 100644 --- a/src/Fl_Native_File_Chooser_WIN32.cxx +++ b/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)); -- cgit v1.2.3