Vincent Povirk : winex11: Convert process name to lowercase for WM name hint.
Module: wine Branch: master Commit: 50b033691494186421f04d518a9eb249d8a348cd URL: http://source.winehq.org/git/wine.git/?a=commit;h=50b033691494186421f04d518a... Author: Vincent Povirk <vincent(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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 );
participants (1)
-
Alexandre Julliard