FLTK logo

[branch-1.3] f3bff25 - Merge pull request #176 from ComputerNerd/errmsg-fix-13

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[branch-1.3] f3bff25 - Merge pull request #176 from ComputerNerd/errmsg-fix-13 "erco77" Dec 13, 2020  
 
commit f3bff256da99da8e45544d35614dca73d04415a7
Merge: 0c70362 724eddf
Author:     erco77 <erco@seriss.com>
AuthorDate: Sun Dec 13 20:57:38 2020 -0800
Commit:     GitHub <noreply@github.com>
CommitDate: Sun Dec 13 20:57:38 2020 -0800

    Merge pull request #176 from ComputerNerd/errmsg-fix-13
    
    [FLTK 1.3] Same errmsg fix as the FLTK 1.4 pull request.

commit 724eddf2083e112073e933558d2bd032673e905e
Author:     ComputerNerd <theprogrammernerd@gmail.com>
AuthorDate: Sun Dec 13 21:54:24 2020 -0600
Commit:     ComputerNerd <theprogrammernerd@gmail.com>
CommitDate: Sun Dec 13 21:54:24 2020 -0600

    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 src/Fl_Native_File_Chooser_WIN32.cxx src/Fl_Native_File_Chooser_WIN32.cxx
index 9a980a8..acfc02c 100644
--- src/Fl_Native_File_Chooser_WIN32.cxx
+++ 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);
   }
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.