From 03220b0c992bd49fbd9d61ffd0f21e2da4b31420 Mon Sep 17 00:00:00 2001 From: jacopodl Date: Sun, 10 Dec 2023 19:05:58 +0100 Subject: [PATCH] fix: fixed a bug that prevented Argon from starting on operating systems other than Linux. --- argon/vm/runtime.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/argon/vm/runtime.cpp b/argon/vm/runtime.cpp index 268998e9..bd231568 100644 --- a/argon/vm/runtime.cpp +++ b/argon/vm/runtime.cpp @@ -802,9 +802,13 @@ argon::vm::datatype::String *argon::vm::GetExecutableName() { #endif - if (size != -1) + if (size != -1) { +#ifdef _ARGON_PLATFORM_LINUX path = StringNew(path_buf, size); - else +#else + path = StringNew(path_buf); +#endif + } else path = StringIntern(""); memory::Free(path_buf);