[*] im not even going to switch to a cross arch to assume this isnt going to compile

(actually it looked even worse under compiler explorer. this patch is much better)
This commit is contained in:
Reece Wilson 2023-03-15 03:12:10 +00:00
parent e88718a48b
commit f24a1c1924

View File

@ -22,12 +22,11 @@ namespace Aurora::Threading::Primitives
{
#if defined(AURORA_IS_MODERNNT_DERIVED)
#if defined(AURORA_IS_32BIT)
AuUInt32 uRet;
__asm {
mov eax, fs:[0x18]
mov [uRet], [eax + 0x24]
mov eax, [eax + 0x24]
ret
}
return uRet;
#else
return ::GetCurrentThreadIDFast();
#endif