summaryrefslogtreecommitdiff
path: root/rts/win32/OSMem.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/win32/OSMem.c')
-rw-r--r--rts/win32/OSMem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/win32/OSMem.c b/rts/win32/OSMem.c
index 138660a879..dde1a74bbb 100644
--- a/rts/win32/OSMem.c
+++ b/rts/win32/OSMem.c
@@ -474,7 +474,7 @@ void osCommitMemory (void *at, W_ size)
void *temp;
temp = VirtualAlloc(at, size, MEM_COMMIT, PAGE_READWRITE);
if (temp == NULL) {
- sysErrorBelch("osCommitMemory: VirtualAlloc MEM_COMMIT failed");
+ sysErrorBelch("osCommitMemory: VirtualAlloc MEM_COMMIT failed to commit %" FMT_Word " bytes of memory (error code: %lu)", size, GetLastError());
stg_exit(EXIT_HEAPOVERFLOW);
}
}