Add window object

This commit is contained in:
momo5502
2025-05-18 09:13:26 +02:00
parent c2fe56e60b
commit d08bcbae9c
4 changed files with 54 additions and 6 deletions

View File

@@ -279,6 +279,19 @@ namespace syscalls
thread->exit_status = exit_status;
c.win_emu.callbacks.on_thread_terminated(thread_handle, *thread);
for (auto i = c.proc.windows.begin(); i != c.proc.windows.end();)
{
if (i->second.thread_id != thread->id)
{
++i;
continue;
}
i->second.ref_count = 1;
i = c.proc.windows.erase(i).first;
}
if (thread == c.proc.active_thread)
{
c.win_emu.yield_thread();