diff options
-rw-r--r-- | rawshark.c | 2 | ||||
-rw-r--r-- | ui/gtk/webbrowser.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/rawshark.c b/rawshark.c index 52cc79f022..1561b8ac45 100644 --- a/rawshark.c +++ b/rawshark.c @@ -336,7 +336,7 @@ raw_pipe_open(const char *pipe_name) } } - rfd = _open_osfhandle((long) hPipe, _O_RDONLY); + rfd = _open_osfhandle((intptr_t) hPipe, _O_RDONLY); if (rfd == -1) { fprintf(stderr, "rawshark: \"%s\" could not be opened: %s\n", pipe_name, g_strerror(errno)); diff --git a/ui/gtk/webbrowser.c b/ui/gtk/webbrowser.c index c8c4940cc2..67457e44ee 100644 --- a/ui/gtk/webbrowser.c +++ b/ui/gtk/webbrowser.c @@ -155,7 +155,7 @@ browser_open_url (const gchar *url) { #if defined(G_OS_WIN32) - return ((gint) ShellExecute (HWND_DESKTOP, _T("open"), utf_8to16(url), NULL, NULL, SW_SHOWNORMAL) > 32); + return ((intptr_t) ShellExecute (HWND_DESKTOP, _T("open"), utf_8to16(url), NULL, NULL, SW_SHOWNORMAL) > 32); #elif defined(HAVE_OS_X_FRAMEWORKS) @@ -312,12 +312,12 @@ filemanager_open_directory (const gchar *path) (eg: wireshak-gtk2.exe exists in the same directory as a wireshark-gtk2 directory entry). */ - gint ret; - gchar *xpath; + intptr_t ret; + gchar *xpath; xpath = g_strconcat(path, g_str_has_suffix(path, "\\") ? "" : "\\", NULL); - ret = (gint) ShellExecute (HWND_DESKTOP, _T("explore"), utf_8to16(xpath), NULL, NULL, SW_SHOWNORMAL); + ret = (intptr_t) ShellExecute (HWND_DESKTOP, _T("explore"), utf_8to16(xpath), NULL, NULL, SW_SHOWNORMAL); g_free(xpath); return (ret > 32); |