From 3cd32fa2350b6ed8e19777a7f9dd06230e4cf6f2 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Sun, 3 Nov 2024 14:45:21 -0800 Subject: [PATCH] correctly prepare paths for windows launches in demon --- src/demon/win32/demon_core_win32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/demon/win32/demon_core_win32.c b/src/demon/win32/demon_core_win32.c index 2a752318..d31d029e 100644 --- a/src/demon/win32/demon_core_win32.c +++ b/src/demon/win32/demon_core_win32.c @@ -1217,6 +1217,8 @@ dmn_ctrl_launch(DMN_CtrlCtx *ctx, OS_ProcessLaunchParams *params) { String8List args = {0}; String8 exe_path = params->cmd_line.first->string; + String8List exe_path_parts = str8_split_path(scratch.arena, exe_path); + exe_path = str8_list_join(scratch.arena, &exe_path_parts, &(StringJoin){.sep = str8_lit("\\")}); str8_list_pushf(scratch.arena, &args, "\"%S\"", exe_path); for(String8Node *n = params->cmd_line.first->next; n != 0; n = n->next) {