https://bugs.winehq.org/show_bug.cgi?id=40659
Bug ID: 40659 Summary: Window with CS_OWNDC style cause DC leak when GetDC/ReleaseDC is used. Product: Wine Version: 1.9.10 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: leslie_alistair@hotmail.com Distribution: ---
Created attachment 54530 --> https://bugs.winehq.org/attachment.cgi?id=54530 testcase
The attached test when run under wine will cause the message to appear. err:gdi:alloc_gdi_handle out of GDI object handles, expect a crash
If GetDC/ReleaseDC are removed from the loop then no error occurs.
I've used a parent window, so that the test will run in a acceptable amount of time but has no effect on the outcome.