http://bugs.winehq.org/show_bug.cgi?id=32082
--- Comment #7 from Austin English austinenglish@gmail.com 2012-11-09 13:09:53 CST --- (In reply to comment #5)
Created attachment 42461 [details] shell32: Fix a buffer overflow in CommandLineToArgvW().
I think the attached patch should fix this. The problem was the final *d='\0' to close the final argument when there are no arguments. Let me know how it goes.
Works for Avatar's demo as well.