From 05c604ee8e1c6665211752d679c3c7c23e8db0e6 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sun, 10 Dec 2023 09:19:46 -0600 Subject: [PATCH] attempted fix: process spawning on Windows --- runtime/src/ort_processes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/ort_processes.h b/runtime/src/ort_processes.h index d4fa1120..8b1c6be2 100644 --- a/runtime/src/ort_processes.h +++ b/runtime/src/ort_processes.h @@ -171,7 +171,7 @@ ONYX_DEF(__process_spawn, (WASM_I32, WASM_I32, WASM_I32, WASM_I32, WASM_I32, WAS working_dir = starting_dir; } - success = CreateProcessA(process_path, cmdLine, &saAttr, &saAttr, 1, 0, NULL, working_dir, &startup, &process->proc_info); + success = CreateProcessA(NULL, cmdLine, &saAttr, &saAttr, 1, 0, NULL, working_dir, &startup, &process->proc_info); if (!success) { printf("FAILED TO CREATE PROCESS: %d\n", GetLastError()); wasm_val_init_ptr(&results->data[0], NULL); // Failed to run @LEAK -- 2.25.1