From: Zebediah Figura Subject: [PATCH 3/5] strmbase: Get rid of the unused "hInstance" field of the BaseWindow structure. Message-Id: <20191017003652.28316-3-z.figura12@gmail.com> Date: Wed, 16 Oct 2019 19:36:49 -0500 In-Reply-To: <20191017003652.28316-1-z.figura12@gmail.com> References: <20191017003652.28316-1-z.figura12@gmail.com> Signed-off-by: Zebediah Figura --- dlls/strmbase/window.c | 3 +-- include/wine/strmbase.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/strmbase/window.c b/dlls/strmbase/window.c index 82bb814827a..c99a529fa27 100644 --- a/dlls/strmbase/window.c +++ b/dlls/strmbase/window.c @@ -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) { diff --git a/include/wine/strmbase.h b/include/wine/strmbase.h index 13544f414b6..cc06e704476 100644 --- a/include/wine/strmbase.h +++ b/include/wine/strmbase.h @@ -359,7 +359,6 @@ typedef struct tagBaseWindow HWND hWnd; LONG Width; LONG Height; - HINSTANCE hInstance; HDC hDC; const struct BaseWindowFuncTable* pFuncsTable; -- 2.23.0