NamedPipe problem

Mike McCormack mike at codeweavers.com
Wed Jun 4 23:50:16 CDT 2003


Hi Oleg,

This patch fixes the immediate problem, but there are more.

Mike

ChangeLog:
* always return FALSE when doing an overlapped ConnectNamedPipe



Oleg Prokhorov wrote:
> Hello ,
> 
>   I've made the test program to check/test some createprocess behavior.
>   But found that it doesn't work with wine at all (it's ok on windows).
> 
>   In ConnectToNewClient
>      ConnectNamedPipe fails and returns non zero.
> 
>   The source is attached.
>   Who is in charge for named pipes problems ? :)
>   
-------------- next part --------------
Index: dlls/kernel/sync.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/sync.c,v
retrieving revision 1.32
diff -u -r1.32 sync.c
--- dlls/kernel/sync.c	20 May 2003 04:32:53 -0000	1.32
+++ dlls/kernel/sync.c	5 Jun 2003 04:37:44 -0000
@@ -911,7 +911,11 @@
     TRACE("(%p,%p)\n",hPipe, overlapped);
 
     if(overlapped)
-        return SYNC_ConnectNamedPipe(hPipe,overlapped);
+    {
+        if(SYNC_ConnectNamedPipe(hPipe,overlapped))
+            SetLastError( ERROR_IO_PENDING );
+        return FALSE;
+    }
 
     memset(&ov,0,sizeof ov);
     ov.hEvent = CreateEventA(NULL,0,0,NULL);


More information about the wine-patches mailing list