|
|
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 ] | |
|
| |