mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 18:45:45 +00:00
General: Fix Stop function
This commit is contained in:
parent
3869e55c27
commit
cb974be3ce
4 changed files with 25 additions and 5 deletions
|
@ -56,10 +56,12 @@ void Thread::Stop() {
|
|||
Signal();
|
||||
kernel.GlobalHandleTable().Close(global_handle);
|
||||
|
||||
owner_process->UnregisterThread(this);
|
||||
if (owner_process) {
|
||||
owner_process->UnregisterThread(this);
|
||||
|
||||
// Mark the TLS slot in the thread's page as free.
|
||||
owner_process->FreeTLSRegion(tls_address);
|
||||
// Mark the TLS slot in the thread's page as free.
|
||||
owner_process->FreeTLSRegion(tls_address);
|
||||
}
|
||||
}
|
||||
global_handle = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue