aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorLittleboy2011-06-04 15:23:21 -0400
committerLittleboy2011-06-04 15:23:21 -0400
commitb15a5c8e133eb198843714d1593b829793142374 (patch)
treef36bfc4de26971fae1d1c0ecc1a3df8251f5ed5b /backends/platform
parent5317837e6984fde66e88f81014ce92ea0dc97ba9 (diff)
downloadscummvm-rg350-b15a5c8e133eb198843714d1593b829793142374.tar.gz
scummvm-rg350-b15a5c8e133eb198843714d1593b829793142374.tar.bz2
scummvm-rg350-b15a5c8e133eb198843714d1593b829793142374.zip
BACKENDS: Fix compilation on mingw64 (take 2)
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/win32/win32.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp
index 27e766c593..5b14be4417 100644
--- a/backends/platform/sdl/win32/win32.cpp
+++ b/backends/platform/sdl/win32/win32.cpp
@@ -102,8 +102,8 @@ bool OSystem_Win32::displayLogFile() {
// Try opening the log file with the default text editor
// log files should be registered as "txtfile" by default and thus open in the default text editor
- long shellExec = (long)ShellExecute(NULL, NULL, _logFilePath.c_str(), NULL, NULL, SW_SHOWNORMAL);
- if (shellExec > 32)
+ HINSTANCE shellExec = ShellExecute(NULL, NULL, _logFilePath.c_str(), NULL, NULL, SW_SHOWNORMAL);
+ if ((intptr_t)shellExec > 32)
return true;
// ShellExecute with the default verb failed, try the "Open with..." dialog