Ensure that the whole message was written on Windows IPC

This commit is contained in:
Alex Beregszaszi
2017-02-09 15:40:56 +00:00
parent f2cafd4974
commit 95f8c5bcdb
+1 -1
View File
@@ -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.