BACKENDS: Cast ShellExecute return value to long instead of int
This should fix compilation on mingw64
This commit is contained in:
parent
3a90d7bf3e
commit
5317837e69
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ bool OSystem_Win32::displayLogFile() {
|
||||||
|
|
||||||
// Try opening the log file with the default text editor
|
// 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
|
// 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)
|
if (shellExec > 32)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue