29 Jul
2016
29 Jul
'16
9:32 a.m.
Huw Davies <huw(a)codeweavers.com> writes:
On Fri, Jul 29, 2016 at 09:22:43PM +0900, Alexandre Julliard wrote:
Huw Davies <huw(a)codeweavers.com> writes:
@@ -1039,7 +1039,7 @@ INT WINAPI SetGraphicsMode( HDC hdc, INT mode ) } release_dc_ptr( dc ); /* font metrics depend on the graphics mode */ - if (ret) SelectObject(dc->hSelf, GetCurrentObject(dc->hSelf, OBJ_FONT)); + if (ret) SelectObject(dc->hSelf, dc->hFont);
The bug was already present, but we shouldn't be accessing the dc after release.
Good catch (although it was originally your bug ;-) )
Then it can't be a bug. There are no bugs in my code. -- Alexandre Julliard julliard(a)winehq.org