Error string that was created is now saved with errmsg()
This commit is contained in:
parent
91e8a0282c
commit
b105dd726f
@ -438,6 +438,7 @@ int Fl_WinAPI_Native_File_Chooser_Driver::showfile() {
|
|||||||
if ( len >= _ofn_ptr->nMaxFile ) {
|
if ( len >= _ofn_ptr->nMaxFile ) {
|
||||||
char msg[80];
|
char msg[80];
|
||||||
sprintf(msg, "preset_file() filename is too long: %ld is >=%ld", (long)len, (long)fsize);
|
sprintf(msg, "preset_file() filename is too long: %ld is >=%ld", (long)len, (long)fsize);
|
||||||
|
errmsg(msg);
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
wcscpy(_ofn_ptr->lpstrFile, utf8towchar(_preset_file));
|
wcscpy(_ofn_ptr->lpstrFile, utf8towchar(_preset_file));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user