Commit 3e7a8047 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

strmbase: Get rid of the unused "hDC" field of the BaseWindow structure.

parent 9cef4894
...@@ -130,8 +130,6 @@ HRESULT WINAPI BaseWindowImpl_PrepareWindow(BaseWindow *This) ...@@ -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) ...@@ -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 ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment