From fd1faed0cf6835dfb14318654c5d257b7d8de352 Mon Sep 17 00:00:00 2001 From: Samuel Serapion Date: Thu, 25 Sep 2008 05:13:21 +0000 Subject: [PATCH] Remove hack in cstub.c, it was caused by a hack in the rbuild file. Fix fill_table() definition for non i386. svn path=/branches/ros-amd64-bringup/; revision=36503 --- reactos/dll/win32/rpcrt4/cproxy.c | 2 +- reactos/dll/win32/rpcrt4/cstub.c | 2 +- reactos/dll/win32/rpcrt4/rpcrt4.rbuild | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/rpcrt4/cproxy.c b/reactos/dll/win32/rpcrt4/cproxy.c index 26e5c416c9c..084285a5458 100644 --- a/reactos/dll/win32/rpcrt4/cproxy.c +++ b/reactos/dll/win32/rpcrt4/cproxy.c @@ -56,7 +56,7 @@ typedef struct { static const IRpcProxyBufferVtbl StdProxy_Vtbl; -#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - FIELD_OFFSET(impl,field)) +#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field)) /* How the Windows stubless proxy thunks work is explained at * http://msdn.microsoft.com/library/en-us/dnmsj99/html/com0199.asp, diff --git a/reactos/dll/win32/rpcrt4/cstub.c b/reactos/dll/win32/rpcrt4/cstub.c index cd07c297390..d0b24c98dfb 100644 --- a/reactos/dll/win32/rpcrt4/cstub.c +++ b/reactos/dll/win32/rpcrt4/cstub.c @@ -194,7 +194,7 @@ static void fill_table(IUnknownVtbl *vtbl, void **methods, DWORD num) #else /* __i386__ */ typedef struct {int dummy;} vtbl_method_t; -static void fill_table(IUnknownVtbl *vtbl, DWORD num) +static void fill_table(IUnknownVtbl *vtbl, void **methods, DWORD num) { ERR("delegated stubs are not supported on this architecture\n"); } diff --git a/reactos/dll/win32/rpcrt4/rpcrt4.rbuild b/reactos/dll/win32/rpcrt4/rpcrt4.rbuild index 092e9f17986..25ab4113d00 100644 --- a/reactos/dll/win32/rpcrt4/rpcrt4.rbuild +++ b/reactos/dll/win32/rpcrt4/rpcrt4.rbuild @@ -7,7 +7,6 @@ 0x600 0x501 0x501 -