From 95f8c5bcdb69ab4cba835f8bc06ab89da4768db8 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 9 Feb 2017 13:08:52 +0000 Subject: Ensure that the whole message was written on Windows IPC --- test/RPCSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index caaf9a8c..b3451528 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -89,7 +89,7 @@ string IPCSocket::sendRequest(string const& _req) &cbWritten, // bytes written NULL); // not overlapped - if (!fSuccess) + if (!fSuccess || (_req.size() != cbWritten)) BOOST_FAIL("WriteFile to pipe failed"); // Read from the pipe. -- cgit