From 58af58d084d57e43690ae78d0b8dad4303090096 Mon Sep 17 00:00:00 2001 From: Daan Leijen Date: Thu, 7 Apr 2022 10:21:49 -0700 Subject: [PATCH] fix debug edit --- src/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os.c b/src/os.c index 281d83b5..62c98dae 100644 --- a/src/os.c +++ b/src/os.c @@ -341,7 +341,7 @@ static void* mi_win_virtual_allocx(void* addr, size_t size, size_t try_alignment if (addr == NULL) { void* hint = mi_os_get_aligned_hint(try_alignment,size); if (hint != NULL) { - void* p = NULL; // VirtualAlloc(hint, size, flags, PAGE_READWRITE); + void* p = VirtualAlloc(hint, size, flags, PAGE_READWRITE); if (p != NULL) return p; // for robustness always fall through in case of an error /*