diff options
| author | ComputerNerd <theprogrammernerd@gmail.com> | 2020-12-13 21:15:47 -0600 |
|---|---|---|
| committer | ComputerNerd <theprogrammernerd@gmail.com> | 2020-12-13 21:15:47 -0600 |
| commit | 34da17cd853b67f698bffc301c1f15415680c188 (patch) | |
| tree | 50eb9d5f84c451d64800e592f550f9f9a6475612 /src | |
| parent | 4f29313a80169d28ac1f898bb2089faa9de3f7e4 (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.cxx | 2 |
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); } |
