http://bugs.winehq.org/show_bug.cgi?id=20598
--- Comment #46 from Vitaliy Margolen vitaliy@kievinfo.com 2010-01-24 23:54:51 --- You leaking hdc. You still have to delete if it was created. Just add an additional HDC variable and assing "hdc" to it. And if it's 0 create one. Make sure you delete created DC on each return.