http://bugs.winehq.org/show_bug.cgi?id=24759
--- Comment #2 from bill lam cbill.lam@gmail.com 2010-10-16 04:17:59 CDT --- I compiled wine from current git. os debian squeeze amd64
I think the error cannot manifest itself unless an external program that can be used to view result, because for a round trip write then read, it passes two reversal and the net result is ok.
I directly call ole api but I've never used C to do it. I can try but could you show me a template of makefile and a simple c program to call ole stuff?
I program in J and the stuff to create safearray is some ascii soup like this.
if. 0= sa=. SafeArrayCreate x ; (#$y) ; , (|.^:IFWINEBUG $y),.0 do. 0 return. end. if. 0~: #,y do. p=. ,2-2 if. S_OK~: hr=. SafeArrayAccessData sa ; p do. SafeArrayDestroy sa 0 return. end. if. (VT_UI1,VT_I1) e.~ x do.