aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorLothar Serra Mari2019-06-23 22:56:40 +0200
committerFilippos Karapetis2019-06-24 17:00:20 +0300
commit119bcc2b9010ee16a35defab71a3ea4524018508 (patch)
tree6090980eab294556f31f3c512c04802981f61486 /backends/platform
parenta9ecbce2f197403b1553efa11d03abc3f8dcda3f (diff)
downloadscummvm-rg350-119bcc2b9010ee16a35defab71a3ea4524018508.tar.gz
scummvm-rg350-119bcc2b9010ee16a35defab71a3ea4524018508.tar.bz2
scummvm-rg350-119bcc2b9010ee16a35defab71a3ea4524018508.zip
WIN32: Use HINSTANCE for OSystem_Win32::openUrl
This implementation now matches previous ShellExecute() calls, so we are now consistent in that regard. It also silences a warning in Mingw complaining about a type mismatch.
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/win32/win32.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp
index 30ebf9d1d2..ef101d3075 100644
--- a/backends/platform/sdl/win32/win32.cpp
+++ b/backends/platform/sdl/win32/win32.cpp
@@ -169,10 +169,10 @@ bool OSystem_Win32::displayLogFile() {
}
bool OSystem_Win32::openUrl(const Common::String &url) {
- const uint64 result = (uint64)ShellExecute(0, 0, /*(wchar_t*)nativeFilePath.utf16()*/url.c_str(), 0, 0, SW_SHOWNORMAL);
+ HINSTANCE result = ShellExecute(NULL, NULL, /*(wchar_t*)nativeFilePath.utf16()*/url.c_str(), NULL, NULL, SW_SHOWNORMAL);
// ShellExecute returns a value greater than 32 if successful
- if (result <= 32) {
- warning("ShellExecute failed: error = %u", result);
+ if ((intptr_t)result <= 32) {
+ warning("ShellExecute failed: error = %p", (void*)result);
return false;
}
return true;