http://bugs.winehq.org/show_bug.cgi?id=21106
--- Comment #7 from Stefan Kuhr winesku@googlemail.com 2010-01-18 08:06:57 --- I have meanwhile found out, which exact change in the changeset, that I determined via git bisect, had introduced this regression. It is the change in RPCRT4_BuildAuthHeader where
header->common.frag_len = 0x14;
had been replaced with
header->common.frag_len = sizeof(header->common);
sizeof(header->common) is 0x10 bytes and this is probably something that windows RPC servers do not like. So if I replace in my current local git repository sizeof(header->common) again with 0x14 in this assignment, everything works again as before. I dunno if the 12 bytes of extra allocation for HeapAlloc need to be reapplied again if things are reverted in this function, it didn't seem to be necessary in my case. Setting header->common.auth_len to zero is most probably not necessary as well since it is taken care of with the HeapAlloc statement and initialization to zero. So everything that needs to be done is setting header->common.frag_len to 0x14, at least this is, what my tests tell me.