mirror of
https://github.com/janet-lang/janet
synced 2025-07-08 13:02:55 +00:00
Fix signature on windows.
This commit is contained in:
parent
2262759751
commit
73af64e6ff
@ -1208,6 +1208,7 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, JanetExecuteMode mode) {
|
|||||||
SECURITY_ATTRIBUTES saAttr;
|
SECURITY_ATTRIBUTES saAttr;
|
||||||
PROCESS_INFORMATION processInfo;
|
PROCESS_INFORMATION processInfo;
|
||||||
STARTUPINFO startupInfo;
|
STARTUPINFO startupInfo;
|
||||||
|
LPCSTR lpCurrentDirectory = NULL;
|
||||||
memset(&saAttr, 0, sizeof(saAttr));
|
memset(&saAttr, 0, sizeof(saAttr));
|
||||||
memset(&processInfo, 0, sizeof(processInfo));
|
memset(&processInfo, 0, sizeof(processInfo));
|
||||||
memset(&startupInfo, 0, sizeof(startupInfo));
|
memset(&startupInfo, 0, sizeof(startupInfo));
|
||||||
@ -1225,7 +1226,7 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, JanetExecuteMode mode) {
|
|||||||
const char *path = (const char *) janet_unwrap_string(exargs.items[0]);
|
const char *path = (const char *) janet_unwrap_string(exargs.items[0]);
|
||||||
|
|
||||||
if (chdir_path != NULL) {
|
if (chdir_path != NULL) {
|
||||||
startupInfo.lpCurrentDirectory = chdir_path;
|
lpCurrentDirectory = chdir_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do IO redirection */
|
/* Do IO redirection */
|
||||||
@ -1264,7 +1265,7 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, JanetExecuteMode mode) {
|
|||||||
TRUE, /* handle inheritance */
|
TRUE, /* handle inheritance */
|
||||||
0, /* flags */
|
0, /* flags */
|
||||||
use_environ ? NULL : envp, /* pass in environment */
|
use_environ ? NULL : envp, /* pass in environment */
|
||||||
NULL, /* use parents starting directory */
|
lpCurrentDirectory,
|
||||||
&startupInfo,
|
&startupInfo,
|
||||||
&processInfo)) {
|
&processInfo)) {
|
||||||
cp_failed = 1;
|
cp_failed = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user