server: Fix return value for FSCTL_PIPE_WAIT if pipe does not exist

Michael Müller michael at fds-team.de
Sat May 31 09:20:15 CDT 2014


The error code set, when calling WaitNamedPipe for a non existing pipe,
needs to be ERROR_FILE_NOT_FOUND and not ERROR_PIPE_BUSY. This breaks
the latest version of Uniy Webplayer and the attached patch fixes the
problem in the server leading to the wrong error code. The patch also
includes tests to prove that ERROR_FILE_NOT_FOUND is the correct error code.

---
 dlls/kernel32/tests/pipe.c | 6 ++++++
 server/named_pipe.c        | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-server-Fix-return-value-for-FSCTL_PIPE_WAIT-if-pipe-.patch
Type: text/x-patch
Size: 1820 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140531/de83e315/attachment.bin>


More information about the wine-patches mailing list