Module: wine Branch: master Commit: e85afda3b5212a0398cb2dd105e232cfdbfc1329 URL: https://gitlab.winehq.org/wine/wine/-/commit/e85afda3b5212a0398cb2dd105e232c...
Author: Zebediah Figura zfigura@codeweavers.com Date: Mon Dec 12 13:54:58 2022 -0600
rpcrt4: Rename "ref_counted_vtbl" to "struct delegating_vtbl".
Get rid of the typedef, and give it a slightly more salient name (and one that matches more of the surrounding code).
---
dlls/rpcrt4/cstub.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/rpcrt4/cstub.c b/dlls/rpcrt4/cstub.c index b420b008065..42bdb51cc27 100644 --- a/dlls/rpcrt4/cstub.c +++ b/dlls/rpcrt4/cstub.c @@ -110,15 +110,15 @@ static CRITICAL_SECTION_DEBUG critsect_debug = }; static CRITICAL_SECTION delegating_vtbl_section = { &critsect_debug, -1, 0, 0, 0, 0 };
-typedef struct +struct delegating_vtbl { DWORD ref; DWORD size; IUnknownVtbl vtbl; /* remaining entries in vtbl */ -} ref_counted_vtbl; +};
-static ref_counted_vtbl *current_vtbl; +static struct delegating_vtbl *current_vtbl;
static HRESULT WINAPI delegating_QueryInterface(IUnknown *pUnk, REFIID iid, void **ppv) @@ -306,7 +306,7 @@ IUnknownVtbl *get_delegating_vtbl(DWORD num_methods)
if(!current_vtbl || num_methods > current_vtbl->size) { - ref_counted_vtbl *table = malloc(FIELD_OFFSET(ref_counted_vtbl, vtbl) + num_methods * sizeof(void *)); + struct delegating_vtbl *table = malloc(FIELD_OFFSET(struct delegating_vtbl, vtbl) + num_methods * sizeof(void *)); if (!table) { LeaveCriticalSection(&delegating_vtbl_section); @@ -333,7 +333,7 @@ IUnknownVtbl *get_delegating_vtbl(DWORD num_methods)
void release_delegating_vtbl(IUnknownVtbl *vtbl) { - ref_counted_vtbl *table = (ref_counted_vtbl*)((DWORD *)vtbl - 1); + struct delegating_vtbl *table = (struct delegating_vtbl *)((DWORD *)vtbl - 1);
EnterCriticalSection(&delegating_vtbl_section); table->ref--;