Alexandre Julliard : gdi32: Get rid of the driver module in the DC.

Alexandre Julliard julliard at winehq.org
Tue Oct 29 15:12:25 CDT 2013


Module: wine
Branch: master
Commit: e650da3570e32645ffc6776a1be1cf3399f26eb3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e650da3570e32645ffc6776a1be1cf3399f26eb3

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Oct 29 12:43:45 2013 +0100

gdi32: Get rid of the driver module in the DC.

---

 dlls/gdi32/dc.c          |    2 --
 dlls/gdi32/gdi_private.h |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index 231f197..9d3af57 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 edd4bf6..1d90f6c 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) */
 




More information about the wine-cvs mailing list