strmbase: Get rid of the unused "hInstance" 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:49 -05:00 committed by Alexandre Julliard
parent a17f2ecb69
commit f3a766bfe4
2 changed files with 1 additions and 3 deletions

View File

@ -110,7 +110,6 @@ HRESULT WINAPI BaseWindowImpl_PrepareWindow(BaseWindow *This)
winclass.lpfnWndProc = WndProcW;
winclass.cbWndExtra = sizeof(BaseWindow*);
winclass.hInstance = This->hInstance;
winclass.hbrBackground = GetStockObject(BLACK_BRUSH);
winclass.lpszClassName = class_nameW;
if (!RegisterClassW(&winclass) && GetLastError() != ERROR_CLASS_ALREADY_EXISTS)
@ -121,7 +120,7 @@ HRESULT WINAPI BaseWindowImpl_PrepareWindow(BaseWindow *This)
This->hWnd = CreateWindowExW(0, class_nameW, windownameW, WS_SIZEBOX,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, This->hInstance, NULL);
NULL, NULL, NULL, NULL);
if (!This->hWnd)
{

View File

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