[3/5] kernel32: Implement SetNamedPipeHandleState.

Sebastian Lackner sebastian at fds-team.de
Thu Aug 21 06:42:28 CDT 2014


Based on patch by Adam Martinson.

Fixes: https://bugs.winehq.org/show_bug.cgi?id=17273

Notes: I don't see a good reason why we should wait implementing this function, because it already partially fixes the problem. Besides that there is no guarantee anyway that an application which needs message mode will call SetNamedPipeHandleState _and_ check the return value. Message mode is already enabled in NtCreateNamedPipeFile for the server and partially for the client, depending on the provided mode flags, so an application theoretically doesn't even have to call SetNamedPipeHandleState() before it can expect a pipe to be in message mode.

---
 dlls/kernel32/sync.c       |   35 ++++++++++++++++++++++++++++-------
 dlls/kernel32/tests/pipe.c |   10 +---------
 2 files changed, 29 insertions(+), 16 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-kernel32-Implement-SetNamedPipeHandleState.patch
Type: text/x-patch
Size: 4937 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140821/972939f6/attachment.bin>


More information about the wine-patches mailing list