Fixing thread ID.

This commit is contained in:
Ben Vanik
2015-05-18 21:24:14 -07:00
parent 8bfc43bb0d
commit b119aa50f5
5 changed files with 9 additions and 9 deletions

View File

@@ -149,7 +149,7 @@ SHIM_CALL NtAllocateVirtualMemory_shim(PPCContext* ppc_state,
// Zero memory, if needed.
if (address && !(alloc_type & X_MEM_NOZERO)) {
if (alloc_type & X_MEM_COMMIT) {
std::memset(SHIM_MEM_ADDR(address), 0, adjusted_size);
state->memory()->Zero(address, adjusted_size);
}
}