Fix more clang tidy warnings

This commit is contained in:
momo5502
2025-03-18 19:08:33 +01:00
parent 046e01832d
commit a822f67ff9
4 changed files with 42 additions and 12 deletions

View File

@@ -219,6 +219,11 @@ bool emulator_thread::is_thread_ready(process_context& process, utils::clock& cl
void emulator_thread::setup_registers(x64_emulator& emu, const process_context& context) const
{
if (!this->gs_segment)
{
throw std::runtime_error("Missing GS segment");
}
setup_stack(emu, this->stack_base, this->stack_size);
setup_gs_segment(emu, *this->gs_segment);