Alex Henrie : include: Annotate NdrGetBuffer with __WINE_(ALLOC_SIZE|MALLOC).
Module: wine Branch: master Commit: e7364e2165924c393055cc3f9f910aa347556bd6 URL: https://gitlab.winehq.org/wine/wine/-/commit/e7364e2165924c393055cc3f9f910aa... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Mon Feb 19 01:08:32 2024 -0700 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. --- 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
participants (1)
-
Alexandre Julliard