Merge pull request #175 from ComputerNerd/wrong-err-fix

[FLTK 1.4] Fix the errmsg for the native file chooser. We should be using exterr instead of err which is always zero.
This commit is contained in:
erco77 2020-12-13 19:30:05 -08:00 committed by GitHub
commit d86358870d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ int Fl_WinAPI_Native_File_Chooser_Driver::showfile() {
if ( exterr == 0 ) return(1); // user hit cancel
// Otherwise, an error occurred..
char msg[80];
sprintf(msg, "CommDlgExtendedError() code=%d", err);
sprintf(msg, "CommDlgExtendedError() code=%d", exterr);
errmsg(msg);
return(-1);
}