summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorerco77 <erco@seriss.com>2020-12-13 19:30:05 -0800
committerGitHub <noreply@github.com>2020-12-13 19:30:05 -0800
commitd86358870d2b83825b1babe4507fa8628ea1ea0b (patch)
tree50eb9d5f84c451d64800e592f550f9f9a6475612 /src
parent4f29313a80169d28ac1f898bb2089faa9de3f7e4 (diff)
parent34da17cd853b67f698bffc301c1f15415680c188 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Native_File_Chooser_WIN32.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx
index f9bc77787..860d677d9 100644
--- a/src/Fl_Native_File_Chooser_WIN32.cxx
+++ b/src/Fl_Native_File_Chooser_WIN32.cxx
@@ -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);
}