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-09 14:25:42 -07:00
2024-07-09 14:25:42 -07:00
2024-07-09 14:25:42 -07:00
2024-07-12 00:46:03 -07:00
2024-03-21 14:11:46 -07:00
2024-02-23 02:37:11 -07:00
2024-03-19 11:45:09 -07: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
2024-07-09 14:25:42 -07:00
2024-07-15 11:31:19 +03:00
2024-07-02 16:31:15 +02:00
2024-03-15 02:28:50 -04:00
2024-03-10 18:13:30 -07:00
2024-03-21 14:11:46 -07:00
2024-07-09 14:25:42 -07:00
2024-05-11 02:17:11 -07:00
2024-07-05 04:45:44 -04:00
2024-03-10 18:13:30 -07:00
2024-07-02 08:59:10 +02:00
2024-05-26 16:13:54 -04:00
2024-03-21 14:11:46 -07:00
2024-02-05 11:55:14 +03:30
2024-03-19 11:45:09 -07:00
2024-06-01 13:28:16 +03:00
2024-07-09 14:25:42 -07:00
2024-04-15 15:24:30 -07:00
2024-03-19 11:45:09 -07:00
2024-07-09 14:25:42 -07:00
2024-07-09 14:25:42 -07:00
2024-06-15 00:57:52 +01:00
2024-06-17 16:12:19 -04:00