diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-10-29 22:32:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-29 22:32:47 +0200 |
| commit | 0e47d1269cc660d2b1451e76375b2d3545ce66f4 (patch) | |
| tree | 27c958e5ef3cd147625112a82626624d51fd6fe5 /src/tools/fileutils.c | |
| parent | 7dc5359c2b10521696e7d251627eff029d53ee28 (diff) | |
| download | box64-0e47d1269cc660d2b1451e76375b2d3545ce66f4.tar.gz box64-0e47d1269cc660d2b1451e76375b2d3545ce66f4.zip | |
Malloc override (#437)
* Add some malloc override mecanism, but missing c++ function overriding * Add c++ new/delete redirection too * Added support for libtbbmalloc_proxy
Diffstat (limited to 'src/tools/fileutils.c')
| -rwxr-xr-x | src/tools/fileutils.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c index 67e8c652..04905c04 100755 --- a/src/tools/fileutils.c +++ b/src/tools/fileutils.c @@ -57,11 +57,8 @@ char* ResolveFile(const char* filename, path_collection_t* paths) } else strcpy(p, paths->paths[i]); strcat(p, filename); - if(FileExist(p, IS_FILE)) { - char p2[MAX_PATH]; - realpath(p, p2); - return box_strdup(p2); - } + if(FileExist(p, IS_FILE)) + return box_realpath(p, NULL); } return box_strdup(filename); //NULL; |