Skip to content

Commit

Permalink
Mingw: Update for GDT
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Dec 21, 2023
1 parent 9e5d7aa commit ae2f98e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Windows/WOW64/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ namespace Context {
State.gs_idx = Context->SegGs & 0xffff;

// The TEB is the only populated GDT entry by default
State.gdt[(Context->SegFs & 0xffff) >> 3].base = WowTEB;
State.SetGDTBase(&State.gdt[(Context->SegFs & 0xffff) >> 3], WowTEB);
State.SetGDTLimit(&State.gdt[(Context->SegFs & 0xffff) >> 3], 0xF'FFFFU);
State.fs_cached = WowTEB;
State.es_cached = 0;
State.cs_cached = 0;
Expand Down

0 comments on commit ae2f98e

Please sign in to comment.