setup: fix building on Windows
This commit is contained in:
parent
6904023bfd
commit
e9b9fefcf6
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <process.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
#else
|
||||
|
||||
|
|
@ -146,7 +147,7 @@ void AddCmdLineParameter(execute_context_t *context, char *s, ...)
|
|||
boolean OpenFolder(const char *path)
|
||||
{
|
||||
// "If the function succeeds, it returns a value greater than 32."
|
||||
return ShellExecute(NULL, "open", path, NULL, NULL, SW_SHOWDEFAULT) > 32;
|
||||
return (int)ShellExecute(NULL, "open", path, NULL, NULL, SW_SHOWDEFAULT) > 32;
|
||||
}
|
||||
|
||||
// Wait for the specified process to exit. Returns the exit code.
|
||||
|
|
|
|||
Loading…
Reference in a new issue