Module: wine Branch: master Commit: fe8f63ce729db45f5dd05699540b0e3778a8e17d URL: https://gitlab.winehq.org/wine/wine/-/commit/fe8f63ce729db45f5dd05699540b0e3...
Author: Zebediah Figura zfigura@codeweavers.com Date: Mon Dec 12 14:06:31 2022 -0600
rpcrt4: Use CONTAINING_RECORD in release_delegating_vtbl().
---
dlls/rpcrt4/cstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/rpcrt4/cstub.c b/dlls/rpcrt4/cstub.c index c9dbbb18b60..0f5bd0eda9f 100644 --- a/dlls/rpcrt4/cstub.c +++ b/dlls/rpcrt4/cstub.c @@ -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--;