From a0699870e37f392b8e61ea5bb5216856f720a3ee Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 3 Dec 2017 15:20:13 +0100 Subject: [PATCH] osalloc: improve error message when virtualFree fails --- lib/system/osalloc.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/osalloc.nim b/lib/system/osalloc.nim index 65a057772c..444f113069 100644 --- a/lib/system/osalloc.nim +++ b/lib/system/osalloc.nim @@ -166,7 +166,7 @@ elif defined(windows): # space heavily, so we now treat Windows as a strange unmap target. when reallyOsDealloc: if virtualFree(p, 0, MEM_RELEASE) == 0: - cprintf "yes, failing!" + cprintf "virtualFree failing!" quit 1 #VirtualFree(p, size, MEM_DECOMMIT)