Author: tkreuzer
Date: Wed Jul 23 18:28:07 2008
New Revision: 34713
URL:
http://svn.reactos.org/svn/reactos?rev=34713&view=rev
Log:
fix NtCurrentTeb()
Modified:
branches/ros-amd64-bringup/reactos/include/psdk/winnt.h
Modified: branches/ros-amd64-bringup/reactos/include/psdk/winnt.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/psdk/winnt.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/psdk/winnt.h [iso-8859-1] Wed Jul 23
18:28:07 2008
@@ -4153,7 +4153,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)