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
This commit is contained in:
parent
f90c190a8e
commit
8e0cceff6e
@ -126,7 +126,7 @@ fl_open_uri(const char *uri, char *msg, int msglen) {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if (msg) snprintf(msg, msglen, "open %s", uri);
|
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__)
|
#elif defined(__APPLE__)
|
||||||
char *argv[3]; // Command-line arguments
|
char *argv[3]; // Command-line arguments
|
||||||
|
Loading…
Reference in New Issue
Block a user