about summary refs log tree commit diff stats
path: root/src/wrapped
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-11-14 10:44:47 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-11-14 10:44:55 +0100
commita1573835dd4d0845ad534bda75008901187ae93a (patch)
tree6165b65f3d355bf11041569c2e8ec1dbb2c4a515 /src/wrapped
parent34355d6b0c537ccdfcfcdb30e8c3e6672a8ee72b (diff)
downloadbox64-a1573835dd4d0845ad534bda75008901187ae93a.tar.gz
box64-a1573835dd4d0845ad534bda75008901187ae93a.zip
Change ResolvePath behaviour in sync with box86
Diffstat (limited to 'src/wrapped')
-rwxr-xr-xsrc/wrapped/wrappedlibc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 1d9ee570..91bc50b4 100755
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -1653,8 +1653,6 @@ EXPORT int32_t my_execvp(x64emu_t* emu, const char* path, char* const argv[])
 {
     // need to use BOX64_PATH / PATH here...
     char* fullpath = ResolveFile(path, &my_context->box64_path);
-    if(!fullpath)
-        fullpath = strdup(path);
     // use fullpath...
     int self = isProcSelf(fullpath, "exe");
     int x64 = FileIsX64ELF(fullpath);
@@ -1705,8 +1703,6 @@ EXPORT int32_t my_execlp(x64emu_t* emu, const char* path)
 {
     // need to use BOX64_PATH / PATH here...
     char* fullpath = ResolveFile(path, &my_context->box64_path);
-    if(!fullpath)
-        fullpath = strdup(path);
     // use fullpath...
     int self = isProcSelf(fullpath, "exe");
     int x64 = FileIsX64ELF(fullpath);