mirror of https://github.com/fltk/fltk
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:
commit
d86358870d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue