[Scummvm-cvs-logs] scummvm master -> 5317837e6984fde66e88f81014ce92ea0dc97ba9

Littleboy littleboy22 at gmail.com
Sat Jun 4 20:49:42 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5317837e69 BACKENDS: Cast ShellExecute return value to long instead of int


Commit: 5317837e6984fde66e88f81014ce92ea0dc97ba9
    https://github.com/scummvm/scummvm/commit/5317837e6984fde66e88f81014ce92ea0dc97ba9
Author: Littleboy (littleboy at users.sourceforge.net)
Date: 2011-06-04T11:45:17-07:00

Commit Message:
BACKENDS: Cast ShellExecute return value to long instead of int

This should fix compilation on mingw64

Changed paths:
    backends/platform/sdl/win32/win32.cpp



diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp
index 978f765..27e766c 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;
 






More information about the Scummvm-git-logs mailing list