From 4a028589eb67e72ecdd9110209ee0270f22253d5 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 13 Dec 2007 16:14:51 +0000 Subject: [PATCH] rpcrt4: Document NdrAllocate. --- dlls/rpcrt4/ndr_marshall.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dlls/rpcrt4/ndr_marshall.c b/dlls/rpcrt4/ndr_marshall.c index 5e77d18db5d..0efa4d2db7d 100644 --- a/dlls/rpcrt4/ndr_marshall.c +++ b/dlls/rpcrt4/ndr_marshall.c @@ -341,6 +341,23 @@ typedef struct _NDR_MEMORY_LIST #define MEML_MAGIC ('M' << 24 | 'E' << 16 | 'M' << 8 | 'L') +/*********************************************************************** + * NdrAllocate [RPCRT4.@] + * + * Allocates a block of memory using pStubMsg->pfnAllocate. + * + * PARAMS + * pStubMsg [I/O] MIDL_STUB_MESSAGE structure. + * len [I] Size of memory block to allocate. + * + * RETURNS + * The memory block of size len that was allocated. + * + * NOTES + * The memory block is always 8-byte aligned. + * If the function is unable to allocate memory an ERROR_OUTOFMEMORY + * exception is raised. + */ void * WINAPI NdrAllocate(MIDL_STUB_MESSAGE *pStubMsg, size_t len) { size_t aligned_len;