summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorComputerNerd <theprogrammernerd@gmail.com>2020-12-13 21:15:47 -0600
committerComputerNerd <theprogrammernerd@gmail.com>2020-12-13 21:15:47 -0600
commit34da17cd853b67f698bffc301c1f15415680c188 (patch)
tree50eb9d5f84c451d64800e592f550f9f9a6475612 /src
parent4f29313a80169d28ac1f898bb2089faa9de3f7e4 (diff)
Set errmsg to exterr instead of err which will always be 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);
}