Don't interpret STATUS_PIPE_CONNECTED as error.
Modified: trunk/reactos/lib/kernel32/file/npipe.c
_____
Modified: trunk/reactos/lib/kernel32/file/npipe.c
--- trunk/reactos/lib/kernel32/file/npipe.c 2005-05-21 12:57:34 UTC
(rev 15456)
+++ trunk/reactos/lib/kernel32/file/npipe.c 2005-05-21 13:39:09 UTC
(rev 15457)
@@ -324,7 +324,8 @@
0);
/* return FALSE in case of failure and pending operations! */
- if (!NT_SUCCESS(Status) || Status == STATUS_PENDING)
+ if ((!NT_SUCCESS(Status) && Status != STATUS_PIPE_CONNECTED) ||
+ Status == STATUS_PENDING)
{
SetLastErrorByStatus(Status);
return FALSE;
@@ -357,7 +358,7 @@
}
}
- if (!NT_SUCCESS(Status))
+ if (!NT_SUCCESS(Status) && Status != STATUS_PIPE_CONNECTED)
{
SetLastErrorByStatus(Status);
return FALSE;