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:
parent
9cef48941e
commit
3e7a804790
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue