[*] 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:
parent
e88718a48b
commit
f24a1c1924
@ -22,12 +22,11 @@ namespace Aurora::Threading::Primitives
|
|||||||
{
|
{
|
||||||
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
||||||
#if defined(AURORA_IS_32BIT)
|
#if defined(AURORA_IS_32BIT)
|
||||||
AuUInt32 uRet;
|
|
||||||
__asm {
|
__asm {
|
||||||
mov eax, fs:[0x18]
|
mov eax, fs:[0x18]
|
||||||
mov [uRet], [eax + 0x24]
|
mov eax, [eax + 0x24]
|
||||||
|
ret
|
||||||
}
|
}
|
||||||
return uRet;
|
|
||||||
#else
|
#else
|
||||||
return ::GetCurrentThreadIDFast();
|
return ::GetCurrentThreadIDFast();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user