[RPCRT4] Sync with Wine Staging 3.3. CORE-14434
[reactos.git] / dll / win32 / rpcrt4 / cstub.c
index 7c78f1c..dc279b7 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "precomp.h"
+#include "config.h"
+#include "wine/port.h"
+
+#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
+#include "excpt.h"
+
+#include "objbase.h"
+#include "rpcproxy.h"
+
+#include "wine/debug.h"
+#include "wine/exception.h"
+
+#include "cpsf.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
@@ -41,7 +59,7 @@ typedef struct
 
 static inline cstdstubbuffer_delegating_t *impl_from_delegating( IRpcStubBuffer *iface )
 {
-    return CONTAINING_RECORD(iface, cstdstubbuffer_delegating_t, stub_buffer);
+    return CONTAINING_RECORD((void *)iface, cstdstubbuffer_delegating_t, stub_buffer);
 }
 
 HRESULT CStdStubBuffer_Construct(REFIID riid,