http://bugs.winehq.org/show_bug.cgi?id=17518
--- Comment #2 from Austin English austinenglish@gmail.com 2009-03-02 14:12:51 --- (In reply to comment #1)
Created an attachment (id=19744)
--> (http://bugs.winehq.org/attachment.cgi?id=19744) [details]
Zero lpwstrRet, before trying to do anything with it.
Austin, could you try this patch? Another solution is to check the return value ( if (lpwstrRet && ret==0) ), but that assumes that in failure case there is never written anything useful to the lpwstrRet.
I tried it on my work machine, no dice. Didn't try checking the return value though...bit busy atm.