Ignore decommits for now.

This commit is contained in:
Ben Vanik 2013-10-14 19:06:26 -07:00
parent 929ea13548
commit 8294f22d76
1 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,11 @@ X_STATUS xeNtFreeVirtualMemory(
return X_STATUS_MEMORY_NOT_ALLOCATED; return X_STATUS_MEMORY_NOT_ALLOCATED;
} }
// TODO(benvanik): ignore decommits for now.
if (free_type == X_MEM_DECOMMIT) {
return X_STATUS_SUCCESS;
}
// Free. // Free.
uint32_t flags = 0; uint32_t flags = 0;
uint32_t freed_size = xe_memory_heap_free(state->memory(), *base_addr_ptr, uint32_t freed_size = xe_memory_heap_free(state->memory(), *base_addr_ptr,