http://bugs.winehq.org/show_bug.cgi?id=22020
--- Comment #19 from Nikolay Sivov bunglehead@gmail.com 2010-03-14 07:27:31 --- (In reply to comment #18)
Created an attachment (id=26795)
--> (http://bugs.winehq.org/attachment.cgi?id=26795) [details]
Log with +tid,+ole,+relay (compressed)
Thanks. Here it is:
--- 0009:Call ntdll.RtlAllocateHeap(01c60000,00000000,0000024e) ret=0054f507 0009:Ret ntdll.RtlAllocateHeap() retval=01c6ad60 ret=0054f507 ... 0009:Call oleaut32.SysStringLen(01c6ad60 ...) ret=20022c11 0009:Ret oleaut32.SysStringLen() retval=0122a9aa ret=20022c11 ... 0009:Call KERNEL32.WideCharToMultiByte(0000fde9,00000000,01c6ad60 L"...stripped...",0122a9aa,00000000,00000000,00000000,00000000) ret=20022c59 ---
So all we have to do now is to test ::loadXML with BSTR with nulls inside. If doesn't go after first null - a perfect case, I'll patch it to remove this length use.