From e650da3570e32645ffc6776a1be1cf3399f26eb3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 29 Oct 2013 12:43:45 +0100 Subject: [PATCH] gdi32: Get rid of the driver module in the DC. --- dlls/gdi32/dc.c | 2 -- dlls/gdi32/gdi_private.h | 1 - 2 files changed, 3 deletions(-) diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c index 231f1976f0d..9d3af5709b0 100644 --- a/dlls/gdi32/dc.c +++ b/dlls/gdi32/dc.c @@ -131,7 +131,6 @@ DC *alloc_dc_ptr( WORD magic ) dc->nulldrv.funcs = &null_driver; dc->physDev = &dc->nulldrv; - dc->module = gdi32_module; dc->thread = GetCurrentThreadId(); dc->refcount = 1; dc->hPen = GDI_inc_ref_count( GetStockObject( BLACK_PEN )); @@ -649,7 +648,6 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output, if (!(dc = alloc_dc_ptr( OBJ_DC ))) return 0; hdc = dc->hSelf; - dc->module = module; dc->hBitmap = GDI_inc_ref_count( GetStockObject( DEFAULT_BITMAP )); TRACE("(driver=%s, device=%s, output=%s): returning %p\n", diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h index edd4bf6e6d8..1d90f6c4b1a 100644 --- a/dlls/gdi32/gdi_private.h +++ b/dlls/gdi32/gdi_private.h @@ -69,7 +69,6 @@ typedef struct tagDC struct tagDC *saved_dc; DWORD_PTR dwHookData; DCHOOKPROC hookProc; /* DC hook */ - HMODULE module; /* module handle of the graphics driver */ BOOL bounds_enabled:1; /* bounds tracking is enabled */ BOOL path_open:1; /* path is currently open (only for saved DCs) */