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>
This commit is contained in:
Zebediah Figura 2019-10-16 19:36:51 -05:00 committed by Alexandre Julliard
parent 9cef48941e
commit 3e7a804790
2 changed files with 0 additions and 7 deletions

View File

@ -130,8 +130,6 @@ HRESULT WINAPI BaseWindowImpl_PrepareWindow(BaseWindow *This)
SetWindowLongPtrW(This->hWnd, 0, (LONG_PTR)This); SetWindowLongPtrW(This->hWnd, 0, (LONG_PTR)This);
This->hDC = GetDC(This->hWnd);
return S_OK; return S_OK;
} }
@ -140,10 +138,6 @@ HRESULT WINAPI BaseWindowImpl_DoneWithWindow(BaseWindow *This)
if (!This->hWnd) if (!This->hWnd)
return S_OK; return S_OK;
if (This->hDC)
ReleaseDC(This->hWnd, This->hDC);
This->hDC = NULL;
SendMessageW(This->hWnd, WM_CLOSE, 0, 0); SendMessageW(This->hWnd, WM_CLOSE, 0, 0);
This->hWnd = NULL; This->hWnd = NULL;

View File

@ -359,7 +359,6 @@ typedef struct tagBaseWindow
HWND hWnd; HWND hWnd;
LONG Width; LONG Width;
LONG Height; LONG Height;
HDC hDC;
const struct BaseWindowFuncTable* pFuncsTable; const struct BaseWindowFuncTable* pFuncsTable;
} BaseWindow; } BaseWindow;