about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-24 14:12:36 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-24 14:12:36 +0100
commit02caee0c02c75e035ce976d1ffdb29baa6e0a6c5 (patch)
treebe18434cbdef194f4de797f8286067ce9f085930 /src/main.c
parent7260da63afd4c9617a420748a5d143de1e6268c5 (diff)
downloadbox64-02caee0c02c75e035ce976d1ffdb29baa6e0a6c5.tar.gz
box64-02caee0c02c75e035ce976d1ffdb29baa6e0a6c5.zip
Added some hack to rename wine binary process too (help mesa pick up the correct binary being run)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 5f06fa24..cddfbc44 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2031,6 +2031,8 @@ int main(int argc, const char **argv, char **env) {
         memset(endp - diff, 0, diff); // fill reminder with NULL
         for(int i=nextarg; i<argc; ++i)
             argv[i] -= diff;    // adjust strings
+        my_context->orig_argc = argc;
+        my_context->orig_argv = (char**)argv;
     }
     box64_isglibc234 = GetNeededVersionForLib(elf_header, "libc.so.6", "GLIBC_2.34");
     if(box64_isglibc234)