fix FIELD_OFFSET macro
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 5 Dec 2008 12:10:31 +0000 (12:10 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 5 Dec 2008 12:10:31 +0000 (12:10 +0000)
svn path=/trunk/; revision=37866

reactos/include/ddk/ntdef.h

index 13c9eaa..b17afaf 100644 (file)
@@ -164,7 +164,7 @@ typedef unsigned long POINTER_64; // FIXME! HACK!!!
 //
 #ifndef FIELD_OFFSET
 #define FIELD_OFFSET(Type, Field) \
-  ((LONG) (&(((Type *) 0)->Field)))
+  ((LONG_PTR) (&(((Type *) 0)->Field)))
 #endif
 
 //