Commit 0a8427dc authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

rpcrt4: Don't open code CONTAINING_RECORD().

parent c0e876cb
...@@ -59,7 +59,7 @@ typedef struct ...@@ -59,7 +59,7 @@ typedef struct
static inline cstdstubbuffer_delegating_t *impl_from_delegating( IRpcStubBuffer *iface ) static inline cstdstubbuffer_delegating_t *impl_from_delegating( IRpcStubBuffer *iface )
{ {
return (cstdstubbuffer_delegating_t*)((char *)iface - FIELD_OFFSET(cstdstubbuffer_delegating_t, stub_buffer)); return CONTAINING_RECORD(iface, cstdstubbuffer_delegating_t, stub_buffer);
} }
HRESULT CStdStubBuffer_Construct(REFIID riid, HRESULT CStdStubBuffer_Construct(REFIID riid,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment