aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/win32
diff options
context:
space:
mode:
authorLittleboy2011-06-04 14:45:17 -0400
committerLittleboy2011-06-04 14:45:17 -0400
commit5317837e6984fde66e88f81014ce92ea0dc97ba9 (patch)
tree998d71deda747fa231667b62c6b1d2879565e5de /backends/platform/sdl/win32
parent3a90d7bf3e395ef8e9b05ad62023d2932b51f7bd (diff)
downloadscummvm-rg350-5317837e6984fde66e88f81014ce92ea0dc97ba9.tar.gz
scummvm-rg350-5317837e6984fde66e88f81014ce92ea0dc97ba9.tar.bz2
scummvm-rg350-5317837e6984fde66e88f81014ce92ea0dc97ba9.zip
BACKENDS: Cast ShellExecute return value to long instead of int
This should fix compilation on mingw64
Diffstat (limited to 'backends/platform/sdl/win32')
-rw-r--r--backends/platform/sdl/win32/win32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp
index 978f765e67..27e766c593 100644
--- a/backends/platform/sdl/win32/win32.cpp
+++ b/backends/platform/sdl/win32/win32.cpp
@@ -102,7 +102,7 @@ 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
- int shellExec = (int)ShellExecute(NULL, NULL, _logFilePath.c_str(), NULL, NULL, SW_SHOWNORMAL);
+ long shellExec = (long)ShellExecute(NULL, NULL, _logFilePath.c_str(), NULL, NULL, SW_SHOWNORMAL);
if (shellExec > 32)
return true;