[PATCH 5/5] strmbase: Get rid of the unused "hDC" field of the BaseWindow structure.
Zebediah Figura
z.figura12 at gmail.com
Wed Oct 16 19:36:51 CDT 2019
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
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 c99a529fa27..23f37de52b9 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 cc06e704476..5be7caa371e 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;
--
2.23.0
More information about the wine-devel
mailing list