Author: tkreuzer
Date: Wed Jul 23 17:56:10 2008
New Revision: 34708
URL:
http://svn.reactos.org/svn/reactos?rev=34708&view=rev
Log:
fix LIST_ENTRY() macro for 64 bits
Modified:
branches/ros-amd64-bringup/reactos/include/reactos/wine/list.h
Modified: branches/ros-amd64-bringup/reactos/include/reactos/wine/list.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/reactos/wine/list.h [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/include/reactos/wine/list.h [iso-8859-1] Wed Jul 23
17:56:10 2008
@@ -224,7 +224,12 @@
#define LIST_INIT(list) { &(list), &(list) }
/* get pointer to object containing list element */
+#ifdef _WIN64
#define LIST_ENTRY(elem, type, field) \
- ((type *)((char *)(elem) - (unsigned int)(&((type *)0)->field)))
+ ((type *)((char *)(elem) - (unsigned long long)(&((type *)0)->field)))
+#else
+#define LIST_ENTRY(elem, type, field) \
+ ((type *)((char *)(elem) - (unsigned long)(&((type *)0)->field)))
+#endif
#endif /* __WINE_SERVER_LIST_H */