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

This commit is contained in:
Greg Ercolano 2020-08-07 16:29:52 -07:00
parent 91e8a0282c
commit b105dd726f

View File

@ -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));