osalloc: improve error message when virtualFree fails

This commit is contained in:
Araq 2017-12-03 15:20:13 +01:00
commit a0699870e3

View file

@ -166,7 +166,7 @@ elif defined(windows):
# space heavily, so we now treat Windows as a strange unmap target. # space heavily, so we now treat Windows as a strange unmap target.
when reallyOsDealloc: when reallyOsDealloc:
if virtualFree(p, 0, MEM_RELEASE) == 0: if virtualFree(p, 0, MEM_RELEASE) == 0:
cprintf "yes, failing!" cprintf "virtualFree failing!"
quit 1 quit 1
#VirtualFree(p, size, MEM_DECOMMIT) #VirtualFree(p, size, MEM_DECOMMIT)