Ensure that the whole message was written on Windows IPC

This commit is contained in:
Alex Beregszaszi 2017-02-09 13:08:52 +00:00
parent f2cafd4974
commit 95f8c5bcdb

View File

@ -89,7 +89,7 @@ string IPCSocket::sendRequest(string const& _req)
&cbWritten, // bytes written &cbWritten, // bytes written
NULL); // not overlapped NULL); // not overlapped
if (!fSuccess) if (!fSuccess || (_req.size() != cbWritten))
BOOST_FAIL("WriteFile to pipe failed"); BOOST_FAIL("WriteFile to pipe failed");
// Read from the pipe. // Read from the pipe.