Properly reinitialise the OVERLAPPED structure (thanks Vincent!)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31371 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-09-11 18:19:59 +00:00
parent df3df64b8a
commit 68809af49b

View File

@ -415,6 +415,8 @@ bool LyXComm::checkStopServer(DWORD timeout)
bool LyXComm::startPipe(DWORD index)
{
pipe_[index].pending_io = false;
pipe_[index].overlap.Offset = 0;
pipe_[index].overlap.OffsetHigh = 0;
// Overlapped ConnectNamedPipe should return zero.
if (ConnectNamedPipe(pipe_[index].handle, &pipe_[index].overlap)) {