From 5317837e6984fde66e88f81014ce92ea0dc97ba9 Mon Sep 17 00:00:00 2001 From: Littleboy Date: Sat, 4 Jun 2011 14:45:17 -0400 Subject: BACKENDS: Cast ShellExecute return value to long instead of int This should fix compilation on mingw64 --- backends/platform/sdl/win32/win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform/sdl/win32') 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; -- cgit v1.2.3