From 724eddf2083e112073e933558d2bd032673e905e Mon Sep 17 00:00:00 2001 From: ComputerNerd Date: Sun, 13 Dec 2020 21:54:24 -0600 Subject: [PATCH] FLTK 1.3 had the same exterr problem. --- src/Fl_Native_File_Chooser_WIN32.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx index 9a980a806..acfc02c00 100644 --- a/src/Fl_Native_File_Chooser_WIN32.cxx +++ b/src/Fl_Native_File_Chooser_WIN32.cxx @@ -420,7 +420,7 @@ int Fl_Native_File_Chooser::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); }