Obeying request to zero.

This commit is contained in:
Ben Vanik
2013-10-27 12:47:00 -07:00
parent 6477d6c21e
commit 11f99ce33b
2 changed files with 3 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ X_STATUS xeNtAllocateVirtualMemory(
}
// Allocate.
uint32_t flags = 0;
uint32_t flags = (allocation_type & X_MEM_NOZERO);
uint32_t addr = xe_memory_heap_alloc(
state->memory(), *base_addr_ptr, adjusted_size, flags);
if (!addr) {