[Box Backup-dev] COMMIT r244 - box/chris/win32/pipe-security/lib/win32

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Dec 15 14:17:06 GMT 2005


Author: chris
Date: 2005-12-15 14:17:04 +0000 (Thu, 15 Dec 2005)
New Revision: 244

Modified:
   box/chris/win32/pipe-security/lib/win32/WinNamedPipeStream.cpp
Log:
* WinNamedPipeStream.cpp
- Pass a pointer to flags to SetNamedPipeHandleState


Modified: box/chris/win32/pipe-security/lib/win32/WinNamedPipeStream.cpp
===================================================================
--- box/chris/win32/pipe-security/lib/win32/WinNamedPipeStream.cpp	2005-12-15 14:09:10 UTC (rev 243)
+++ box/chris/win32/pipe-security/lib/win32/WinNamedPipeStream.cpp	2005-12-15 14:17:04 UTC (rev 244)
@@ -147,10 +147,12 @@
 		THROW_EXCEPTION(ServerException, SocketOpenError)
 	}
 
+	DWORD Flags = PIPE_READMODE_MESSAGE | // put this end into message mode
+		PIPE_WAIT;                    // put this end into blocking mode
+
 	if (!SetNamedPipeHandleState(
 		mSocketHandle,          // pipe handle
-		PIPE_READMODE_MESSAGE | // put this end into message mode
-		PIPE_WAIT,              // put this end into blocking mode
+		&Flags,                 // mode flags
 		NULL,                   // don't change the collection count
 		NULL))                  // don't change the collect timeout
 	{




More information about the Boxbackup-dev mailing list