diff --git a/src/core/arm/nce/arm_nce.cpp b/src/core/arm/nce/arm_nce.cpp index 17b83a5fb0..0d525704ff 100644 --- a/src/core/arm/nce/arm_nce.cpp +++ b/src/core/arm/nce/arm_nce.cpp @@ -463,7 +463,7 @@ HaltReason ArmNce::RunThread(Kernel::KThread* thread) { ASSERT(pthread_setspecific(ContextKey, thread_params) == 0); #elif defined(_WIN32) ASSERT_MSG(TlsSetValue(ContextKey, thread_params), "Failed to set TLS value: id {}, error {}", ContextKey, GetLastError()); - ASSERT_MSG(TlsSetValue(NCEStorage, reinterpret_cast(thread_params->native_context->cpu_registers[18])), + ASSERT_MSG(TlsSetValue(NCEStorage, reinterpret_cast(m_guest_ctx.cpu_registers[18])), "Failed to set TLS value: id {}, error {}", ContextKey, GetLastError()); thread_params->guest_stack_base = reinterpret_cast(GetInteger(