Module: wine Branch: master Commit: e8567110b3cdb3014a5c387278129b08e88a96c6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e8567110b3cdb3014a5c387278...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jun 9 20:14:40 2011 +0200
rpcrt4: Also check base types for null ref pointers.
---
dlls/rpcrt4/ndr_stubless.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index f508c9e..f019776 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -315,7 +315,10 @@ static void client_do_args(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, &pParam->type_format_char;
if (pParam->param_attributes.IsSimpleRef) + { pArg = *(unsigned char **)pArg; + if (!pArg) RpcRaiseException(RPC_X_NULL_REF_POINTER); + }
TRACE("\tbase type: 0x%02x\n", *pTypeFormat);