Skip to content
Snippets Groups Projects
Commit 71e609fb authored by Moritz Angermann's avatar Moritz Angermann Committed by Marge Bot
Browse files

Add error information to osCommitMemory on failure.

parent fa499356
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment