diff --git a/src/os.c b/src/os.c index b15d58d0..bcce5d7d 100644 --- a/src/os.c +++ b/src/os.c @@ -257,6 +257,9 @@ static void* mi_win_virtual_alloc(void* addr, size_t size, size_t try_alignment, if (p == NULL) { p = mi_win_virtual_allocx(addr, size, try_alignment, flags); } + if (p == NULL) { + _mi_warning_message("unable to alloc mem error: err: %i size: 0x%x \n", GetLastError(), size); + } return p; }