Lucas Santos 89942ebd03
Better implementation of GetLastError. (#20623)
Instead of calling the dynamically loaded kernel32.GetLastError, we can extract it from the TEB.
As shown by [Wine](34b1606019/include/winternl.h (L439)), the last error lives at offset 0x34 of the TEB in 32-bit Windows and at offset 0x68 in 64-bit Windows.
2024-07-15 10:49:51 -07:00
..
2024-07-12 03:07:15 -04:00
2024-02-25 11:22:10 +01:00
2024-07-09 14:25:42 -07:00
2023-11-03 23:18:21 -04:00
2024-07-09 14:25:42 -07:00
2023-11-03 23:18:21 -04:00
2024-07-09 14:25:42 -07:00
2024-07-09 14:25:42 -07:00
2024-07-09 14:25:42 -07:00
2024-03-21 14:11:46 -07:00