Marcus Meissner : include: Mark up with alloc_size attribute.
Alexandre Julliard
julliard at winehq.org
Wed Sep 10 06:01:35 CDT 2008
Module: wine
Branch: master
Commit: 68f63689cbb611d8485a9719e171bba01bb77b44
URL: http://source.winehq.org/git/wine.git/?a=commit;h=68f63689cbb611d8485a9719e171bba01bb77b44
Author: Marcus Meissner <marcus at rennboot.site>
Date: Tue Sep 9 13:49:58 2008 +0200
include: Mark up with alloc_size attribute.
---
include/rpcndr.h | 14 +++++++-------
include/wincrypt.h | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/rpcndr.h b/include/rpcndr.h
index 2503a3a..38f3c5f 100644
--- a/include/rpcndr.h
+++ b/include/rpcndr.h
@@ -189,7 +189,7 @@ typedef struct _MIDL_STUB_MESSAGE
ULONG_PTR MaxCount;
ULONG Offset;
ULONG ActualCount;
- void * (__RPC_API *pfnAllocate)(size_t);
+ void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(size_t);
void (__RPC_API *pfnFree)(void *);
unsigned char *StackTop;
unsigned char *pPresentedType;
@@ -316,7 +316,7 @@ typedef struct _USER_MARSHAL_CB
typedef struct _MALLOC_FREE_STRUCT
{
- void * (__RPC_USER *pfnAllocate)(size_t);
+ void * (__WINE_ALLOC_SIZE(1) __RPC_USER *pfnAllocate)(size_t);
void (__RPC_USER *pfnFree)(void *);
} MALLOC_FREE_STRUCT;
@@ -329,7 +329,7 @@ typedef struct _COMM_FAULT_OFFSETS
typedef struct _MIDL_STUB_DESC
{
void *RpcInterfaceInformation;
- void * (__RPC_API *pfnAllocate)(size_t);
+ void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(size_t);
void (__RPC_API *pfnFree)(void *);
union {
handle_t *pAutoHandle;
@@ -468,7 +468,7 @@ typedef struct _NDR_USER_MARSHAL_INFO_LEVEL1
{
void *Buffer;
ULONG BufferSize;
- void * (__RPC_API *pfnAllocate)(size_t);
+ void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(size_t);
void (__RPC_API *pfnFree)(void *);
struct IRpcChannelBuffer *pRpcChannelBuffer;
ULONG_PTR Reserved[5];
@@ -662,7 +662,7 @@ RPCRTAPI RPC_STATUS RPC_ENTRY
ULONG *pFaultStatus, RPC_STATUS Status_ );
RPCRTAPI void* RPC_ENTRY
- NdrOleAllocate( size_t Size );
+ NdrOleAllocate( size_t Size ) __WINE_ALLOC_SIZE(1);
RPCRTAPI void RPC_ENTRY
NdrOleFree( void* NodeToFree );
@@ -723,11 +723,11 @@ RPCRTAPI void RPC_ENTRY
RPCRTAPI void RPC_ENTRY
NdrRpcSmSetClientToOsf( PMIDL_STUB_MESSAGE pMessage );
RPCRTAPI void * RPC_ENTRY
- NdrRpcSmClientAllocate( size_t Size );
+ NdrRpcSmClientAllocate( size_t Size ) __WINE_ALLOC_SIZE(1);
RPCRTAPI void RPC_ENTRY
NdrRpcSmClientFree( void *NodeToFree );
RPCRTAPI void * RPC_ENTRY
- NdrRpcSsDefaultAllocate( size_t Size );
+ NdrRpcSsDefaultAllocate( size_t Size ) __WINE_ALLOC_SIZE(1);
RPCRTAPI void RPC_ENTRY
NdrRpcSsDefaultFree( void *NodeToFree );
diff --git a/include/wincrypt.h b/include/wincrypt.h
index e6006ee..4b28f93 100644
--- a/include/wincrypt.h
+++ b/include/wincrypt.h
@@ -1082,7 +1082,7 @@ typedef BOOL (WINAPI *PFN_CERT_ENUM_PHYSICAL_STORE)(const void *pvSystemStore,
void *pvReserved, void *pvArg);
/* Encode/decode object */
-typedef LPVOID (WINAPI *PFN_CRYPT_ALLOC)(size_t cbsize);
+typedef LPVOID (__WINE_ALLOC_SIZE(1) WINAPI *PFN_CRYPT_ALLOC)(size_t cbsize);
typedef VOID (WINAPI *PFN_CRYPT_FREE)(LPVOID pv);
typedef struct _CRYPT_ENCODE_PARA {
More information about the wine-cvs
mailing list