Use a CreateProcessA argument instead of chdir on Windows

Plus minor build fixes
This commit is contained in:
2023-02-20 03:07:54 +00:00
parent d59526a8af
commit 2f58d4453d
3 changed files with 19 additions and 13 deletions
+2 -2
View File
@@ -212,8 +212,8 @@ run_test(const void *arg) {
memset(&pi, 0, sizeof(pi));
unsigned tout = get_test_timeout(test_name);
if(!CreateProcess(NULL, "../../umka_shell -ri run.us -o out.log", NULL,
NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
if(!CreateProcessA(NULL, "../umka_shell -ri run.us -o out.log", NULL,
NULL, FALSE, 0, NULL, test_name, &si, &pi)) {
fprintf(stderr, "CreateProcess failed: %lu\n", GetLastError());
return (void *)-1;
}