use explicit thread name exception thread ID parameter, when not implicit

This commit is contained in:
Ryan Fleury
2024-01-30 13:11:37 -08:00
parent d9f69cdf14
commit c700264445
3 changed files with 13 additions and 1 deletions
+4
View File
@@ -1124,6 +1124,10 @@ demon_os_run(Arena *arena, DEMON_OS_RunCtrls *ctrls){
}
e->kind = DEMON_EventKind_SetThreadName;
e->string = str8_list_join(arena, &thread_name_strings, 0);
if(exception->NumberParameters > 2)
{
e->code = exception->ExceptionInformation[2];
}
}
}break;