[PATCH 0/1] MR5109: include: Annotate NdrGetBuffer with __WINE_(ALLOC_SIZE|MALLOC).
It would be nice to annotate it with __WINE_DEALLOC(NdrFreeBuffer) too, but that causes a bunch of spurious -Wfree-nonheap-object warnings. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5109
From: Alex Henrie <alexhenrie24(a)gmail.com> It would be nice to annotate it with __WINE_DEALLOC(NdrFreeBuffer) too, but that causes a bunch of spurious -Wfree-nonheap-object warnings. --- include/rpcndr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rpcndr.h b/include/rpcndr.h index 75f93b48771..15698a8778a 100644 --- a/include/rpcndr.h +++ b/include/rpcndr.h @@ -692,7 +692,8 @@ RPCRTAPI void RPC_ENTRY PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pFormat, void *pParamList ); RPCRTAPI unsigned char* RPC_ENTRY - NdrGetBuffer( PMIDL_STUB_MESSAGE stubmsg, ULONG buflen, RPC_BINDING_HANDLE handle ); + NdrGetBuffer( PMIDL_STUB_MESSAGE stubmsg, ULONG buflen, RPC_BINDING_HANDLE handle ) + __WINE_ALLOC_SIZE(2) __WINE_MALLOC; RPCRTAPI void RPC_ENTRY NdrFreeBuffer( PMIDL_STUB_MESSAGE pStubMsg ); RPCRTAPI unsigned char* RPC_ENTRY -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5109
participants (2)
-
Alex Henrie -
Alex Henrie (@alexhenrie)