http://bugs.winehq.org/show_bug.cgi?id=17195
--- Comment #13 from Luke Kenneth Casson Leighton lkcl@lkcl.net 2009-02-05 15:30:16 --- hiya juan,
msrpc.exe exits with a code of 1 in all instances of failure, and 0 on success, so that it can be run from automated shell scripts.
the _very_ first clue is this:
"SetNamedPipeHandleState failed"
if you look at the current implementation of SetNamedPipeHandleState, it's this:
BOOL WINAPI SetNamedPipeHandleState( HANDLE hNamedPipe, LPDWORD lpMode, LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout) { return FALSE; /* FIXME */ }
so at almost the _very_ first hurdle, the current code in wine is wrong :)
the return result from this function must be TRUE not FALSE.
if you modify just that one line, then you will get wine to at least pass "test1". from there-on, all the other tests are guaranteed to fail.