Vincent Povirk : winex11: Convert process name to lowercase for WM name hint.
Alexandre Julliard
julliard at winehq.org
Fri Sep 8 15:03:21 CDT 2017
Module: wine
Branch: master
Commit: 50b033691494186421f04d518a9eb249d8a348cd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=50b033691494186421f04d518a9eb249d8a348cd
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Fri Sep 8 10:54:29 2017 -0500
winex11: Convert process name to lowercase for WM name hint.
The startup-notification spec is vague on this point, but it seems
that StartupWMClass is case-sensitive. We should convert to a
standard case so we can use that field.
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winex11.drv/x11drv_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c
index 65ef59b..a2ec18b 100644
--- a/dlls/winex11.drv/x11drv_main.c
+++ b/dlls/winex11.drv/x11drv_main.c
@@ -343,6 +343,7 @@ static void setup_options(void)
WCHAR *p, *appname = bufferW;
if ((p = strrchrW( appname, '/' ))) appname = p + 1;
if ((p = strrchrW( appname, '\\' ))) appname = p + 1;
+ CharLowerW(appname);
len = WideCharToMultiByte( CP_UNIXCP, 0, appname, -1, NULL, 0, NULL, NULL );
if ((process_name = HeapAlloc( GetProcessHeap(), 0, len )))
WideCharToMultiByte( CP_UNIXCP, 0, appname, -1, process_name, len, NULL, NULL );
More information about the wine-cvs
mailing list