rpcrt4: Free all pointers by default, except for conformant strings.

Free all pointers by default, except for conformant strings.
Conformant arrays should always be freed.
Add FC_CVARRAY to list of known types to avoid a FIXME.
This commit is contained in:
Robert Shearman 2006-04-20 11:45:16 +01:00 committed by Alexandre Julliard
parent b36d5fa11f
commit 8d36337644
1 changed files with 3 additions and 1 deletions

View File

@ -909,10 +909,12 @@ void WINAPI PointerFree(PMIDL_STUB_MESSAGE pStubMsg,
case RPC_FC_BOGUS_STRUCT: case RPC_FC_BOGUS_STRUCT:
case RPC_FC_BOGUS_ARRAY: case RPC_FC_BOGUS_ARRAY:
case RPC_FC_USER_MARSHAL: case RPC_FC_USER_MARSHAL:
case RPC_FC_CARRAY:
case RPC_FC_CVARRAY:
break; break;
default: default:
FIXME("unhandled data type=%02x\n", *desc); FIXME("unhandled data type=%02x\n", *desc);
case RPC_FC_CARRAY: break;
case RPC_FC_C_CSTRING: case RPC_FC_C_CSTRING:
case RPC_FC_C_WSTRING: case RPC_FC_C_WSTRING:
if (pStubMsg->ReuseBuffer) goto notfree; if (pStubMsg->ReuseBuffer) goto notfree;