ole32: Void functions should not return a value.
This commit is contained in:
parent
c4bbed4854
commit
65bf44868c
|
@ -1352,7 +1352,11 @@ static void __RPC_STUB dispatch_rpc(RPC_MESSAGE *msg)
|
|||
TRACE("ipid = %s, iMethod = %d\n", debugstr_guid(&ipid), msg->ProcNum);
|
||||
|
||||
params = HeapAlloc(GetProcessHeap(), 0, sizeof(*params));
|
||||
if (!params) return RpcRaiseException(E_OUTOFMEMORY);
|
||||
if (!params)
|
||||
{
|
||||
RpcRaiseException(E_OUTOFMEMORY);
|
||||
return;
|
||||
}
|
||||
|
||||
hr = ipid_get_dispatch_params(&ipid, &apt, ¶ms->stub, ¶ms->chan,
|
||||
¶ms->iid, ¶ms->iface);
|
||||
|
@ -1360,7 +1364,8 @@ static void __RPC_STUB dispatch_rpc(RPC_MESSAGE *msg)
|
|||
{
|
||||
ERR("no apartment found for ipid %s\n", debugstr_guid(&ipid));
|
||||
HeapFree(GetProcessHeap(), 0, params);
|
||||
return RpcRaiseException(hr);
|
||||
RpcRaiseException(hr);
|
||||
return;
|
||||
}
|
||||
|
||||
params->msg = (RPCOLEMESSAGE *)msg;
|
||||
|
|
|
@ -321,7 +321,7 @@ static void __RPC_USER handle_UserFree(ULONG *pFlags, HANDLE *phMenu)
|
|||
void __RPC_USER type##_UserFree(ULONG *pFlags, type *handle) \
|
||||
{ \
|
||||
TRACE("(%s, &%p\n", debugstr_user_flags(pFlags), *handle); \
|
||||
return handle_UserFree(pFlags, (HANDLE *)handle); \
|
||||
handle_UserFree(pFlags, (HANDLE *)handle); \
|
||||
}
|
||||
|
||||
IMPL_WIREM_HANDLE(HACCEL)
|
||||
|
|
Loading…
Reference in New Issue