Merge merge 34713 from ros-amd64-bringup branch:

fix NtCurrentTeb()

svn path=/trunk/; revision=35639
This commit is contained in:
Timo Kreuzer 2008-08-25 19:01:09 +00:00
parent 7876a9fe0d
commit fac43bb581

View file

@ -4145,7 +4145,7 @@ static __inline__ struct _TEB * NtCurrentTeb(void)
#elif defined (_M_AMD64) #elif defined (_M_AMD64)
FORCEINLINE struct _TEB * NtCurrentTeb(VOID) FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
{ {
return __readgsqword(FIELD_OFFSET(NT_TIB, Self)); return (struct _TEB *)__readgsqword(FIELD_OFFSET(NT_TIB, Self));
} }
#else #else
static __inline__ struct _TEB * NtCurrentTeb(void) static __inline__ struct _TEB * NtCurrentTeb(void)