CVS: winex/dlls/kernel sync.c,1.15,1.16

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/dlls/kernel sync.c,1.15,1.16Update of /var/lib/cvsd/cvsroot/winex/dlls/kernel
In directory agravaine:/tmp/cvs-serv25034/dlls/kernel

Modified Files:
	sync.c 
Log Message:
Don't generate error in PeekNamedPipe when cbBuffer is 0 and lpvBuffer
isn't.


Index: sync.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/kernel/sync.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- sync.c	29 Mar 2007 13:57:23 -0000	1.15
+++ sync.c	30 Mar 2007 21:35:33 -0000	1.16
@@ -549,7 +549,7 @@
     if (lpcbAvail) *lpcbAvail = waiting;
     if (lpcbRead) *lpcbRead = 0;
     if (lpcbMessage) *lpcbMessage = 0; /* FIXME */
-    if (waiting && lpvBuffer)
+    if (waiting && lpvBuffer && cbBuffer)
     {
         int readbytes = (waiting < cbBuffer) ? waiting : cbBuffer;
         int ret;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.