Zebediah Figura : strmbase: Get rid of the unused "hInstance" field of the BaseWindow structure.

Alexandre Julliard julliard at winehq.org
Thu Oct 17 16:01:25 CDT 2019


Module: wine
Branch: master
Commit: f3a766bfe4465c373ae0ecb0e6b0eccb0ec9918e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f3a766bfe4465c373ae0ecb0e6b0eccb0ec9918e

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Oct 16 19:36:49 2019 -0500

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

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 82bb814827..c99a529fa2 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 13544f414b..cc06e70447 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;




More information about the wine-cvs mailing list