aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-09 21:08:52 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-09 23:40:56 +0800
commit95f8c5bcdb69ab4cba835f8bc06ab89da4768db8 (patch)
treeea7b5f5196a750e5615d3c26e99f23165e2a0ba2
parentf2cafd497459d7ed0ea7f6efdeeb77a51cacecc7 (diff)
downloaddexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.tar.gz
dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.tar.zst
dexon-solidity-95f8c5bcdb69ab4cba835f8bc06ab89da4768db8.zip
Ensure that the whole message was written on Windows IPC
-rw-r--r--test/RPCSession.cpp2
1 files changed, 1 insertions, 1 deletions
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.