From: Piotr Caban piotr@codeweavers.com
--- dlls/gdi32/enhmetafile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/gdi32/enhmetafile.c b/dlls/gdi32/enhmetafile.c index 608995ef5e2..51f3a306094 100644 --- a/dlls/gdi32/enhmetafile.c +++ b/dlls/gdi32/enhmetafile.c @@ -2191,9 +2191,7 @@ BOOL WINAPI PlayEnhMetaFileRecord( { const EMRFILLRGN *pFillRgn = (const EMRFILLRGN *)mr; HRGN hRgn = ExtCreateRegion(NULL, pFillRgn->cbRgnData, (const RGNDATA *)pFillRgn->RgnData); - FillRgn(hdc, - hRgn, - (handletable->objectHandle)[pFillRgn->ihBrush]); + FillRgn(hdc, hRgn, get_object_handle(handletable, pFillRgn->ihBrush)); DeleteObject(hRgn); break; }