http://bugs.winehq.org/show_bug.cgi?id=16566
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2008-12-18 23:56:26 --- Created an attachment (id=18067) --> (http://bugs.winehq.org/attachment.cgi?id=18067) test program
It seems the program does SetParent(X, X) and expects an error. Wine's SetParent returns 0 in this case, but it does a lot of work and doesn't set an error.
Attached test program prints "0 0" on Wine and "0 87" on Windows XP.