From 6239ff96163b62ac82c272ee49734c8a2e1e19fd Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 16 May 2015 01:49:57 -0700 Subject: [PATCH] Disabling thread state 0x150 set. --- src/xenia/kernel/objects/xthread.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/objects/xthread.cc b/src/xenia/kernel/objects/xthread.cc index 7e1d9bde7..cc9f2fda4 100644 --- a/src/xenia/kernel/objects/xthread.cc +++ b/src/xenia/kernel/objects/xthread.cc @@ -200,7 +200,8 @@ X_STATUS XThread::Create() { xe::store_and_swap(p + 0x144, thread_state_address_ + 0x144); xe::store_and_swap(p + 0x148, thread_state_address_ + 0x144); xe::store_and_swap(p + 0x14C, thread_id_); - xe::store_and_swap(p + 0x150, creation_params_.start_address); + // TODO(benvanik): figure out why RtlGetLastError changes on this: + // xe::store_and_swap(p + 0x150, creation_params_.start_address); xe::store_and_swap(p + 0x154, thread_state_address_ + 0x154); xe::store_and_swap(p + 0x158, thread_state_address_ + 0x154); xe::store_and_swap(p + 0x160, 0); // last error