From 53433225d3c506b883156230e6f12b2af4296c3b Mon Sep 17 00:00:00 2001 From: Daan Date: Mon, 24 Apr 2023 11:33:12 -0700 Subject: [PATCH] update readme --- bin/readme.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/readme.md b/bin/readme.md index f7c9ba03..e08302ad 100644 --- a/bin/readme.md +++ b/bin/readme.md @@ -15,7 +15,7 @@ There are four requirements to make the overriding work robustly: (or use the `/INCLUDE:mi_version` switch on the linker). See the `mimalloc-override-test` project for an example on how to use this. -3. The [`mimalloc-redirect.dll`](../bin) (or `mimalloc-redirect32.dll`) must be put +3. The `mimalloc-redirect.dll` (or `mimalloc-redirect32.dll`) must be put in the same folder as the main `mimalloc-override.dll` at runtime (as it is a dependency of that DLL). The redirection DLL ensures that all calls to the C runtime malloc API get redirected to mimalloc functions (which reside in `mimalloc-override.dll`). @@ -38,7 +38,6 @@ ensure the the DLL comes first in the import table of the final executable. In many cases though we can patch existing executables without any recompilation if they are linked with the dynamic C runtime (`ucrtbase.dll`) -- just put the `mimalloc-override.dll` into the import table (and put `mimalloc-redirect.dll` in the same folder) -Such patching can be done for example with [CFF Explorer](https://ntcore.com/?page_id=388) or -the [`minject`](bin) program. +Such patching can be done for example with [CFF Explorer](https://ntcore.com/?page_id=388). The `minject` program can also do this from the command line, use `minject --help` for options.