Commit fe8f63ce authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

rpcrt4: Use CONTAINING_RECORD in release_delegating_vtbl().

parent 10bbf79d
...@@ -334,7 +334,7 @@ IUnknownVtbl *get_delegating_vtbl(DWORD num_methods) ...@@ -334,7 +334,7 @@ IUnknownVtbl *get_delegating_vtbl(DWORD num_methods)
void release_delegating_vtbl(IUnknownVtbl *vtbl) void release_delegating_vtbl(IUnknownVtbl *vtbl)
{ {
struct delegating_vtbl *table = (struct delegating_vtbl *)((DWORD *)vtbl - 1); struct delegating_vtbl *table = CONTAINING_RECORD(vtbl, struct delegating_vtbl, vtbl);
EnterCriticalSection(&delegating_vtbl_section); EnterCriticalSection(&delegating_vtbl_section);
table->ref--; table->ref--;
......
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