mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 08:32:07 +08:00
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:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user