mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
Rob Shearman : rpcrt4: Improve error handling in RPCRT4_io_thread and remove commented-out code. <rob at codeweavers.com>
svn path=/trunk/; revision=31850
This commit is contained in:
parent
5914c98aa9
commit
41862fd922
|
@ -374,15 +374,17 @@ static DWORD CALLBACK RPCRT4_io_thread(LPVOID the_arg)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
RPCRT4_process_packet(conn, hdr, msg);
|
|
||||||
#else
|
|
||||||
packet = HeapAlloc(GetProcessHeap(), 0, sizeof(RpcPacket));
|
packet = HeapAlloc(GetProcessHeap(), 0, sizeof(RpcPacket));
|
||||||
|
if (!packet)
|
||||||
|
break;
|
||||||
packet->conn = conn;
|
packet->conn = conn;
|
||||||
packet->hdr = hdr;
|
packet->hdr = hdr;
|
||||||
packet->msg = msg;
|
packet->msg = msg;
|
||||||
QueueUserWorkItem(RPCRT4_worker_thread, packet, WT_EXECUTELONGFUNCTION);
|
if (!QueueUserWorkItem(RPCRT4_worker_thread, packet, WT_EXECUTELONGFUNCTION)) {
|
||||||
#endif
|
ERR("couldn't queue work item for worker thread, error was %d\n", GetLastError());
|
||||||
|
HeapFree(GetProcessHeap(), 0, packet);
|
||||||
|
break;
|
||||||
|
}
|
||||||
msg = NULL;
|
msg = NULL;
|
||||||
}
|
}
|
||||||
RPCRT4_DestroyConnection(conn);
|
RPCRT4_DestroyConnection(conn);
|
||||||
|
|
Loading…
Reference in a new issue