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
988884a4
Commit
988884a4
authored
Nov 10, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix getmainargs() family to return correct environment block.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
bba9e5ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
data.c
dlls/msvcrt/data.c
+2
-2
environ.c
dlls/msvcrt/tests/environ.c
+0
-2
No files found.
dlls/msvcrt/data.c
View file @
988884a4
...
...
@@ -559,7 +559,7 @@ int CDECL __wgetmainargs(int *argc, wchar_t** *wargv, wchar_t** *wenvp,
MSVCRT__wenviron
=
msvcrt_SnapshotOfEnvironmentW
(
NULL
);
*
argc
=
MSVCRT___argc
;
*
wargv
=
MSVCRT___wargv
;
*
wenvp
=
MSVCRT__
_winitenv
;
*
wenvp
=
MSVCRT__
wenviron
;
if
(
new_mode
)
_set_new_mode
(
*
new_mode
);
return
0
;
...
...
@@ -593,7 +593,7 @@ int CDECL __getmainargs(int *argc, char** *argv, char** *envp,
*
argc
=
MSVCRT___argc
;
*
argv
=
MSVCRT___argv
;
*
envp
=
MSVCRT__
_initenv
;
*
envp
=
MSVCRT__
environ
;
if
(
new_mode
)
_set_new_mode
(
*
new_mode
);
...
...
dlls/msvcrt/tests/environ.c
View file @
988884a4
...
...
@@ -152,7 +152,6 @@ static void test__environ(void)
ok
(
envp
!=
NULL
,
"Expected initial environment block pointer to be non-NULL
\n
"
);
todo_wine
ok
(
envp
==
*
p_environ
,
"Expected initial environment to be equal to _environ
\n
"
);
...
...
@@ -224,7 +223,6 @@ static void test__wenviron(void)
__wgetmainargs
(
&
argc
,
&
wargv
,
&
wenvp
,
0
,
&
mode
);
ok
(
wenvp
!=
NULL
,
"Expected initial environment block pointer to be non-NULL
\n
"
);
todo_wine
ok
(
wenvp
==
*
p_wenviron
,
"Expected initial environment to be _wenviron[]
\n
"
);
if
(
p__p___winitenv
)
...
...
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