dlls/rpcrt4/rpc_message.c
Filip Navara
xnavara at volny.cz
Sat Apr 17 06:09:11 CDT 2004
Prevent crashes in I_RpcSend on Microsoft (R) Windows (R) XP.
- Filip
-------------- next part --------------
--- rpc_message.c Fri Feb 27 04:33:42 2004
+++ rpc_message.c Sat Apr 17 11:02:42 2004
@@ -92,6 +92,7 @@
UUID* act;
RPC_STATUS status;
RpcPktHdr hdr;
+ DWORD count;
TRACE("(%p)\n", pMsg);
if (!bind) return RPC_S_INVALID_BINDING;
@@ -131,7 +132,7 @@
hdr.len = pMsg->BufferLength;
/* transmit packet */
- if (!WriteFile(conn->conn, &hdr, sizeof(hdr), NULL, NULL)) {
+ if (!WriteFile(conn->conn, &hdr, sizeof(hdr), &count, NULL)) {
WARN("WriteFile failed with error %ld\n", GetLastError());
status = RPC_S_PROTOCOL_ERROR;
goto fail;
@@ -143,7 +144,7 @@
goto fail;
}
- if (!WriteFile(conn->conn, pMsg->Buffer, pMsg->BufferLength, NULL, NULL)) {
+ if (!WriteFile(conn->conn, pMsg->Buffer, pMsg->BufferLength, &count, NULL)) {
WARN("WriteFile failed with error %ld\n", GetLastError());
status = RPC_S_PROTOCOL_ERROR;
goto fail;
More information about the wine-patches
mailing list