{
WINPR_HANDLE_DEF();
- WINPR_NAMED_PIPE* pBaseNamedPipe;
-
- DWORD dwRefCount;
-
int clientfd;
int serverfd;
LPOVERLAPPED lpOverlapped;
fnRemoveBaseNamedPipeFromList pfnRemoveBaseNamedPipeFromList;
+
+ WINPR_NAMED_PIPE* pBaseNamedPipe;
+ DWORD dwRefCount;
+
};
#endif
if (Type == HANDLE_TYPE_NAMED_PIPE)
{
WINPR_NAMED_PIPE *named = (WINPR_NAMED_PIPE *)hEvent;
- if (named->ServerMode)
+ if (named->ServerMode) {
return named->serverfd;
+ } else {
+ return named->clientfd;
+ }
}
return event->pipe_fd[0];