[patch] rpcrt4_conn_np_read needs to expect and accept ERROR_MORE_DATA

Luke Kenneth Casson Leighton luke.leighton at googlemail.com
Fri Feb 6 04:49:03 CST 2009


this is the first and most immediate of the uses of ReadFile on
message-mode named pipes which needs attention. when ReadFile begins
to [correctly] return ERROR_MORE_DATA on short reads,
rpcrt4_conn_np_read() erroneously fails.  this causes wine to
immediately bomb out on the very first MSRPC interaction, which
happens to be a svcctl operation on wine start-up.

there are _going_ to be more of these, and a thorough audit should be
carried out of all uses of message-mode named pipes in wine to ensure
that the status code ERROR_MORE_DATA is accepted.

http://bugs.winehq.org/show_bug.cgi?id=17263
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpc_err_more_data.patch
Type: text/x-diff
Size: 697 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090206/11fb37f6/attachment-0001.patch 


More information about the wine-patches mailing list