Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c5b0dd5f
Commit
c5b0dd5f
authored
Mar 30, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Set the window title to the image name on the Unix side.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f55f0b84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
env.c
dlls/ntdll/unix/env.c
+2
-1
No files found.
dlls/ntdll/unix/env.c
View file @
c5b0dd5f
...
...
@@ -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
**
)
&
params
,
0
,
&
size
,
...
...
@@ -1961,6 +1961,7 @@ static RTL_USER_PROCESS_PARAMETERS *build_initial_params(void)
put_unicode_string
(
main_wargv
[
0
],
&
dst
,
&
params
->
ImagePathName
);
put_unicode_string
(
cmdline
,
&
dst
,
&
params
->
CommandLine
);
put_unicode_string
(
main_wargv
[
0
],
&
dst
,
&
params
->
WindowTitle
);
free
(
image
);
free
(
cmdline
);
free
(
curdir
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment