http://bugs.winehq.org/show_bug.cgi?id=23707
Summary: stack overflow when destroying a window whose owner is itself Product: Wine Version: 1.2 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: madewokherd@gmail.com
Created an attachment (id=29697) --> (http://bugs.winehq.org/attachment.cgi?id=29697) testcase (C source)
File this one under "crazy situations created by the mono test suite".
If you create a window, change its parent to itself (using SetWindowLong[Ptr] with GWL[P]_HWNDPARENT), and then destroy the window, DestroyWindow recurses infinitely and causes a stack overflow.
Test case attached.