Fix fl_open_uri() on WIN32

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2007-01-10 21:11:34 +00:00
parent 68e1aa9757
commit 08216b4fac
+3 -2
View File
@@ -34,11 +34,12 @@
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "flstring.h"
#ifdef WIN32
# include <windows.h>
# include <shellapi.h>
#else
# include <sys/wait.h>
# include <signal.h>
# include <fcntl.h>
# include <unistd.h>
@@ -111,7 +112,7 @@ fl_open_uri(const char *uri, char *msg, int msglen) {
#ifdef WIN32
if (msg) snprintf(msg, msglen, "open %s", uri);
ShellExecute(HWND_DESKTOP, "open", uri, NULL, NULL, SW_SHOW);
return (int)ShellExecute(HWND_DESKTOP, "open", uri, NULL, NULL, SW_SHOW) > 32;
#elif defined(__APPLE__)
char *argv[3]; // Command-line arguments