include/winnt.h: MSC compiler doesn't support __asm keyword in x86_64 mode.
This commit is contained in:
parent
92bcd0bf10
commit
9d9496058f
|
@ -2221,14 +2221,6 @@ static FORCEINLINE struct _TEB * WINAPI NtCurrentTeb(void)
|
|||
__asm__(".byte 0x65\n\tmovq (0x30),%0" : "=r" (teb));
|
||||
return teb;
|
||||
}
|
||||
#elif defined(__x86_64__) && defined (_MSC_VER)
|
||||
static FORCEINLINE struct _TEB * WINAPI NtCurrentTeb(void)
|
||||
{
|
||||
struct _TEB *teb;
|
||||
__asm mov rax, gs:[0x30];
|
||||
__asm mov teb, rax;
|
||||
return teb;
|
||||
}
|
||||
#else
|
||||
extern struct _TEB * WINAPI NtCurrentTeb(void);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue