Commit 65bf4486 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

ole32: Void functions should not return a value.

parent c4bbed48
......@@ -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, &params->stub, &params->chan,
&params->iid, &params->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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment