From 68809af49bc9c77c4d54a55b5c020a7ca3a6bcb3 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Fri, 11 Sep 2009 18:19:59 +0000 Subject: [PATCH] Properly reinitialise the OVERLAPPED structure (thanks Vincent!) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31371 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Server.cpp b/src/Server.cpp index 2aed7fad37..33c32ea19c 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -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)) { -- 2.39.5