static inline cstdstubbuffer_delegating_t *impl_from_delegating( IRpcStubBuffer *iface )
{
- return CONTAINING_RECORD((void *)iface, cstdstubbuffer_delegating_t, stub_buffer);
+ return CONTAINING_RECORD(iface, cstdstubbuffer_delegating_t, stub_buffer);
}
HRESULT CStdStubBuffer_Construct(REFIID riid,
}
#endif
+static inline BOOL param_needs_alloc( PARAM_ATTRIBUTES attr )
+{
+ return attr.IsOut && !attr.IsIn && !attr.IsBasetype && !attr.IsByValue;
+}
+
static LONG_PTR *stub_do_args(MIDL_STUB_MESSAGE *pStubMsg,
PFORMAT_STRING pFormat, enum stubless_phase phase,
unsigned short number_of_params)
{
HeapFree(GetProcessHeap(), 0, *(void **)pArg);
}
- else if (params[i].attr.IsOut &&
- !params[i].attr.IsIn &&
- !params[i].attr.IsBasetype &&
- !params[i].attr.IsByValue)
+ else if (param_needs_alloc(params[i].attr) &&
+ (!params[i].attr.MustFree || params[i].attr.IsSimpleRef))
{
if (*pTypeFormat != RPC_FC_BIND_CONTEXT) pStubMsg->pfnFree(*(void **)pArg);
}
break;
case STUBLESS_INITOUT:
- if (!params[i].attr.IsIn &&
- params[i].attr.IsOut &&
- !params[i].attr.IsBasetype &&
- !params[i].attr.ServerAllocSize &&
- !params[i].attr.IsByValue)
+ if (param_needs_alloc(params[i].attr) && !params[i].attr.ServerAllocSize)
{
if (*pTypeFormat == RPC_FC_BIND_CONTEXT)
{
if (stop_listen) {
RpcServerProtseq *cps;
- EnterCriticalSection(&server_cs);
LIST_FOR_EACH_ENTRY(cps, &protseqs, RpcServerProtseq, entry)
RPCRT4_sync_with_server_thread(cps);
- LeaveCriticalSection(&server_cs);
}
if (!auto_listen)
if (pipe != INVALID_HANDLE_VALUE) break;
err = GetLastError();
if (err == ERROR_PIPE_BUSY) {
+ if (WaitNamedPipeA(pname, NMPWAIT_USE_DEFAULT_WAIT)) {
+ TRACE("retrying busy server\n");
+ continue;
+ }
TRACE("connection failed, error=%x\n", err);
return RPC_S_SERVER_TOO_BUSY;
}
reactos/dll/win32/resutils # Synced to WineStaging-2.9
reactos/dll/win32/riched20 # Synced to Wine-3.0
reactos/dll/win32/riched32 # Synced to WineStaging-2.9
-reactos/dll/win32/rpcrt4 # Synced to WineStaging-2.16
+reactos/dll/win32/rpcrt4 # Synced to Wine-3.0
reactos/dll/win32/rsabase # Synced to WineStaging-2.9
reactos/dll/win32/rsaenh # Synced to WineStaging-2.9
reactos/dll/win32/sccbase # Synced to WineStaging-2.9