From 8e0cceff6e15299a7116021df793d1023e7070b1 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 8 Dec 2010 12:42:45 +0000 Subject: Fixed cast for ShellExecute (Windows) as proposed by HenryN (STR 2308). This is better since ShellExecute() returns a HINSTANCE value. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_open_uri.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fl_open_uri.cxx b/src/fl_open_uri.cxx index 2277d2ed1..932a1e3f0 100644 --- a/src/fl_open_uri.cxx +++ b/src/fl_open_uri.cxx @@ -126,7 +126,7 @@ fl_open_uri(const char *uri, char *msg, int msglen) { #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 -- cgit v1.2.3