Module: wine Branch: master Commit: 3e7a804790a8c3ab2d1b7ab393f21a375d3e467a URL: https://source.winehq.org/git/wine.git/?a=commit;h=3e7a804790a8c3ab2d1b7ab39...
Author: Zebediah Figura z.figura12@gmail.com Date: Wed Oct 16 19:36:51 2019 -0500
strmbase: Get rid of the unused "hDC" field of the BaseWindow structure.
Signed-off-by: Zebediah Figura z.figura12@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/strmbase/window.c | 6 ------ include/wine/strmbase.h | 1 - 2 files changed, 7 deletions(-)
diff --git a/dlls/strmbase/window.c b/dlls/strmbase/window.c index c99a529fa2..23f37de52b 100644 --- a/dlls/strmbase/window.c +++ b/dlls/strmbase/window.c @@ -130,8 +130,6 @@ HRESULT WINAPI BaseWindowImpl_PrepareWindow(BaseWindow *This)
SetWindowLongPtrW(This->hWnd, 0, (LONG_PTR)This);
- This->hDC = GetDC(This->hWnd); - return S_OK; }
@@ -140,10 +138,6 @@ HRESULT WINAPI BaseWindowImpl_DoneWithWindow(BaseWindow *This) if (!This->hWnd) return S_OK;
- if (This->hDC) - ReleaseDC(This->hWnd, This->hDC); - This->hDC = NULL; - SendMessageW(This->hWnd, WM_CLOSE, 0, 0); This->hWnd = NULL;
diff --git a/include/wine/strmbase.h b/include/wine/strmbase.h index cc06e70447..5be7caa371 100644 --- a/include/wine/strmbase.h +++ b/include/wine/strmbase.h @@ -359,7 +359,6 @@ typedef struct tagBaseWindow HWND hWnd; LONG Width; LONG Height; - HDC hDC;
const struct BaseWindowFuncTable* pFuncsTable; } BaseWindow;