DosAllocMem() promises that allocated memory will be zeroed out, apparently.

Fixes lots of stuff.  :)
This commit is contained in:
Ryan C. Gordon committed 2017-12-21 17:44:12 -05:00
1 parent 20d2bfa3ff
commit 3864bc9d61
1 file changed
+1 -1
+1 -1
View File
@@ -748,7 +748,7 @@ APIRET DosAllocMem(PPVOID ppb, ULONG cb, ULONG flag)
TRACE_NATIVE("DosAllocMem(%p, %u, %u)", ppb, (uint) cb, (uint) flag);
// !!! FIXME: this API is actually much more complicated than this.
*ppb = malloc(cb);
*ppb = calloc(1, cb);
if (!*ppb)
return ERROR_NOT_ENOUGH_MEMORY;
return NO_ERROR;