improve windows warning message

This commit is contained in:
daan 2019-10-28 12:26:57 -07:00
parent 25246070ae
commit 5dfdc092b5
2 changed files with 1 additions and 3 deletions

View File

@ -283,7 +283,7 @@ static void* mi_win_virtual_alloc(void* addr, size_t size, size_t try_alignment,
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);
_mi_warning_message("unable to allocate memory: error code: %i, addr: %p, size: 0x%x, large only: %d, allow_large: %d\n", GetLastError(), addr, size, large_only, allow_large);
}
return p;
}

View File

@ -7,8 +7,6 @@
#include <mimalloc.h>
#include <new>
static void double_free();
static void* p = malloc(8);
void free_p() {