mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
(Windows) Fixed a MinGW compile error.
This commit is contained in:
parent
032e769369
commit
4d5364e9e4
|
@ -147,7 +147,7 @@ namespace Utils
|
|||
}
|
||||
|
||||
int launchGameWindows(const std::wstring& cmd_utf16,
|
||||
std::wstring& startDirectory,
|
||||
const std::wstring& startDirectory,
|
||||
bool runInBackground,
|
||||
bool hideWindow)
|
||||
{
|
||||
|
@ -165,7 +165,8 @@ namespace Utils
|
|||
bool processReturnValue = true;
|
||||
DWORD errorCode = 0;
|
||||
|
||||
wchar_t* startDir {startDirectory == L"" ? nullptr : &startDirectory[0]};
|
||||
std::wstring startDirectoryTemp {startDirectory};
|
||||
wchar_t* startDir {startDirectory == L"" ? nullptr : &startDirectoryTemp[0]};
|
||||
|
||||
// clang-format off
|
||||
processReturnValue = CreateProcessW(
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace Utils
|
|||
const std::string& startDirectory,
|
||||
bool runInBackground);
|
||||
int launchGameWindows(const std::wstring& cmd_utf16,
|
||||
std::wstring& startDirectory,
|
||||
const std::wstring& startDirectory,
|
||||
bool runInBackground,
|
||||
bool hideWindow);
|
||||
|
||||
|
|
Loading…
Reference in a new issue