Alexandre Julliard : ntdll: Set the window title to the image name on the Unix side.
Alexandre Julliard
julliard at winehq.org
Tue Mar 30 15:19:50 CDT 2021
Module: wine
Branch: master
Commit: c5b0dd5fc22f7819f0921e173da8734e8e58bac6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c5b0dd5fc22f7819f0921e173da8734e8e58bac6
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Mar 30 12:25:42 2021 +0200
ntdll: Set the window title to the image name on the Unix side.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/unix/env.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c
index a7b025d79d2..2101f463287 100644
--- a/dlls/ntdll/unix/env.c
+++ b/dlls/ntdll/unix/env.c
@@ -1941,7 +1941,7 @@ static RTL_USER_PROCESS_PARAMETERS *build_initial_params(void)
size = (sizeof(*params)
+ MAX_PATH * sizeof(WCHAR) /* curdir */
+ (wcslen( cmdline ) + 1) * sizeof(WCHAR) /* command line */
- + (wcslen( main_wargv[0] ) + 1) * sizeof(WCHAR) /* image path */
+ + (wcslen( main_wargv[0] ) + 1) * sizeof(WCHAR) * 2 /* image path + window title */
+ env_pos * sizeof(WCHAR));
status = NtAllocateVirtualMemory( NtCurrentProcess(), (void **)¶ms, 0, &size,
@@ -1961,6 +1961,7 @@ static RTL_USER_PROCESS_PARAMETERS *build_initial_params(void)
put_unicode_string( main_wargv[0], &dst, ¶ms->ImagePathName );
put_unicode_string( cmdline, &dst, ¶ms->CommandLine );
+ put_unicode_string( main_wargv[0], &dst, ¶ms->WindowTitle );
free( image );
free( cmdline );
free( curdir );
More information about the wine-cvs
mailing list