about summary refs log tree commit diff stats
path: root/src/elfs
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-01 17:44:32 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-01 17:44:32 +0200
commit254df70148b53feb481e1f70bb6c7003e44c66d2 (patch)
treead77649d48c18e2b03aa2bc9ebd9a995d88e644c /src/elfs
parent759cef6e015a7fe99bc94cd70da92e8f00584db9 (diff)
downloadbox64-254df70148b53feb481e1f70bb6c7003e44c66d2.tar.gz
box64-254df70148b53feb481e1f70bb6c7003e44c66d2.zip
[BOX32] Better handling for FILE*
Diffstat (limited to 'src/elfs')
-rw-r--r--src/elfs/elfloader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c
index 9a7266f9..9b09d042 100644
--- a/src/elfs/elfloader.c
+++ b/src/elfs/elfloader.c
@@ -41,9 +41,9 @@
 #include "../tools/bridge_private.h"
 #include "x64tls.h"
 
-void* my__IO_2_1_stderr_ = NULL;
-void* my__IO_2_1_stdin_  = NULL;
-void* my__IO_2_1_stdout_ = NULL;
+void* my__IO_2_1_stderr_ = (void*)1;
+void* my__IO_2_1_stdin_  = (void*)2;
+void* my__IO_2_1_stdout_ = (void*)3;
 
 // return the index of header (-1 if it doesn't exist)
 static int getElfIndex(box64context_t* ctx, elfheader_t* head) {