[PATCH 4/6] user32: Remove SC_ABOUTWINE support.

Jacek Caban wine at gitlab.winehq.org
Thu Jun 16 18:56:44 CDT 2022


From: Jacek Caban <jacek at codeweavers.com>

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
---
 dlls/user32/nonclient.c | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index 3844d42adba..7a742e1a429 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -31,8 +31,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(nonclient);
 
-#define SC_ABOUTWINE            (SC_SCREENSAVE+1)
-
   /* Some useful macros */
 #define HAS_DLGFRAME(style,exStyle) \
     (((exStyle) & WS_EX_DLGMODALFRAME) || \
@@ -291,24 +289,6 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
         WinExec( "taskman.exe", SW_SHOWNORMAL );
         break;
 
-    case SC_SCREENSAVE:
-        if (wParam == SC_ABOUTWINE)
-        {
-            HMODULE hmodule = LoadLibraryA( "shell32.dll" );
-            if (hmodule)
-            {
-                BOOL (WINAPI *aboutproc)(HWND, LPCSTR, LPCSTR, HICON);
-                extern const char * CDECL wine_get_version(void);
-                char app[256];
-
-                sprintf( app, "Wine %s", wine_get_version() );
-                aboutproc = (void *)GetProcAddress( hmodule, "ShellAboutA" );
-                if (aboutproc) aboutproc( hwnd, app, NULL, 0 );
-                FreeLibrary( hmodule );
-            }
-        }
-        break;
-
     case SC_HOTKEY:
     case SC_ARRANGE:
     case SC_NEXTWINDOW:
-- 
GitLab


https://gitlab.winehq.org/wine/wine/-/merge_requests/261



More information about the wine-devel mailing list