http://bugs.winehq.org/show_bug.cgi?id=12307
--- Comment #25 from Hans Leidekker hans@meelstraat.net 2008-08-20 06:27:57 ---
Most importantly, it means that you should not put hdc into the cache. If you need a DC, you may only use the one provided right to this call. If none was provided, return STATUS_PENDING.
The DC is in the cache because gdi calls need it. Returning STATUS_PENDING whenever we call a gdi function it is not going to work because that is not how Windows behaves. I agree that the DC should be banned from the cache though and that's why I'm suggesting we should call gdi functions earlier and cache the results.