Author: tkreuzer
Date: Mon Aug 25 14:01:09 2008
New Revision: 35639
URL:
http://svn.reactos.org/svn/reactos?rev=35639&view=rev
Log:
Merge merge 34713 from ros-amd64-bringup branch:
fix NtCurrentTeb()
Modified:
trunk/reactos/include/psdk/winnt.h
Modified: trunk/reactos/include/psdk/winnt.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winnt.h?rev=3…
==============================================================================
--- trunk/reactos/include/psdk/winnt.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winnt.h [iso-8859-1] Mon Aug 25 14:01:09 2008
@@ -4145,7 +4145,7 @@
#elif defined (_M_AMD64)
FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
{
- return __readgsqword(FIELD_OFFSET(NT_TIB, Self));
+ return (struct _TEB *)__readgsqword(FIELD_OFFSET(NT_TIB, Self));
}
#else
static __inline__ struct _TEB * NtCurrentTeb(void)