From 0e8241c1400004ba7a4b0a780aba747207559e8d Mon Sep 17 00:00:00 2001 From: Jakub Szymanski Date: Tue, 30 Jul 2019 10:36:00 -0700 Subject: [PATCH] change from MIMALLOC_OVERRIDE to MIMALLOC_DISABLE_OVERRIDE --- src/alloc-override-win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alloc-override-win.c b/src/alloc-override-win.c index 93886982..d1d51b9a 100644 --- a/src/alloc-override-win.c +++ b/src/alloc-override-win.c @@ -685,8 +685,8 @@ __declspec(dllexport) BOOL WINAPI DllEntry(HINSTANCE inst, DWORD reason, LPVOID if (ok) { // check if patching is not disabled #pragma warning(suppress:4996) - const char* s = getenv("MIMALLOC_OVERRIDE"); - bool enabled = (s == NULL || strstr("1;TRUE;YES;ON", s) != NULL); + const char* s = getenv("MIMALLOC_DISABLE_OVERRIDE"); + bool enabled = (s == NULL || !(strstr("1;TRUE;YES;ON", s) != NULL)); if (!enabled) { _mi_verbose_message("override is disabled\n"); }