Author: AlbrechtS Date: 2010-12-08 04:42:45 -0800 (Wed, 08 Dec 2010) New Revision: 7976 Log: Fixed cast for ShellExecute (Windows) as proposed by HenryN (STR 2308). This is better since ShellExecute() returns a HINSTANCE value.
Modified: branches/branch-1.3/src/fl_open_uri.cxx Modified: branches/branch-1.3/src/fl_open_uri.cxx =================================================================== --- branches/branch-1.3/src/fl_open_uri.cxx 2010-12-08 12:15:48 UTC (rev 7975) +++ branches/branch-1.3/src/fl_open_uri.cxx 2010-12-08 12:42:45 UTC (rev 7976) @@ -126,7 +126,7 @@ #ifdef WIN32 if (msg) snprintf(msg, msglen, "open %s", uri); - return (int)ShellExecute(HWND_DESKTOP, "open", uri, NULL, NULL, SW_SHOW) > 32; + return (int)(ShellExecute(HWND_DESKTOP, "open", uri, NULL, NULL, SW_SHOW) > (void *)32); #elif defined(__APPLE__) char *argv[3]; // Command-line arguments _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
