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
3cd3b775
Commit
3cd3b775
authored
Sep 14, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Update argc when changing process name.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49834
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0f515c8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
env.c
dlls/ntdll/unix/env.c
+4
-3
No files found.
dlls/ntdll/unix/env.c
View file @
3cd3b775
...
...
@@ -736,7 +736,7 @@ char **build_envp( const WCHAR *envW )
*
* Change the process name in the ps output.
*/
static
void
set_process_name
(
int
argc
,
char
*
argv
[]
)
static
int
set_process_name
(
int
argc
,
char
*
argv
[]
)
{
BOOL
shift_strings
;
char
*
p
,
*
name
;
...
...
@@ -790,6 +790,7 @@ static void set_process_name( int argc, char *argv[] )
#endif
prctl
(
PR_SET_NAME
,
name
);
#endif
/* HAVE_PRCTL */
return
argc
-
1
;
}
...
...
@@ -954,14 +955,14 @@ void init_environment( int argc, char *argv[], char *envp[] )
init_unix_codepage
();
init_locale
();
set_process_name
(
argc
,
argv
);
if
((
case_table
=
read_nls_file
(
"l_intl"
)))
{
uctable
=
case_table
+
2
;
lctable
=
case_table
+
case_table
[
1
]
+
2
;
}
main_argc
=
argc
;
main_argc
=
set_process_name
(
argc
,
argv
);
main_argv
=
argv
;
main_wargv
=
build_wargv
(
argv
);
main_envp
=
envp
;
...
...
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