rpcrt4: Use CONTAINING_RECORD in release_delegating_vtbl().
This commit is contained in:
parent
10bbf79d53
commit
fe8f63ce72
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ IUnknownVtbl *get_delegating_vtbl(DWORD num_methods)
|
|||
|
||||
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);
|
||||
table->ref--;
|
||||
|
|
Loading…
Add table
Reference in a new issue