Commit 50b03369 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

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: 's avatarVincent Povirk <vincent@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 79f11f22
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment