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
0a6f070f
Commit
0a6f070f
authored
Feb 15, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Also set the dynamic environment strings in the initial parameters.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
528f9d32
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
90 additions
and
76 deletions
+90
-76
env.c
dlls/ntdll/env.c
+1
-16
env.c
dlls/ntdll/unix/env.c
+88
-56
loader.c
dlls/ntdll/unix/loader.c
+0
-1
unix_private.h
dlls/ntdll/unix/unix_private.h
+0
-1
unixlib.h
dlls/ntdll/unixlib.h
+1
-2
No files found.
dlls/ntdll/env.c
View file @
0a6f070f
...
...
@@ -286,22 +286,7 @@ static void set_wow64_environment( WCHAR **env )
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
HANDLE
hkey
;
SIZE_T
size
=
1024
;
WCHAR
*
ptr
,
*
val
,
*
p
;
for
(;;)
{
if
(
!
(
ptr
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
WCHAR
)
)))
break
;
if
(
!
unix_funcs
->
get_dynamic_environment
(
ptr
,
&
size
))
break
;
RtlFreeHeap
(
GetProcessHeap
(),
0
,
ptr
);
}
for
(
p
=
ptr
;
*
p
;
p
+=
wcslen
(
p
)
+
1
)
{
if
((
val
=
wcschr
(
p
,
'='
)))
*
val
++
=
0
;
set_env_var
(
env
,
p
,
val
);
if
(
val
)
p
=
val
;
}
RtlFreeHeap
(
GetProcessHeap
(),
0
,
ptr
);
WCHAR
*
val
;
/* set the PROCESSOR_ARCHITECTURE variable */
...
...
dlls/ntdll/unix/env.c
View file @
0a6f070f
This diff is collapsed.
Click to expand it.
dlls/ntdll/unix/loader.c
View file @
0a6f070f
...
...
@@ -1607,7 +1607,6 @@ static struct unix_funcs unix_funcs =
ntdll_sin
,
ntdll_sqrt
,
ntdll_tan
,
get_dynamic_environment
,
get_unix_codepage_data
,
get_locales
,
virtual_release_address_space
,
...
...
dlls/ntdll/unix/unix_private.h
View file @
0a6f070f
...
...
@@ -99,7 +99,6 @@ extern LONGLONG CDECL fast_RtlGetSystemTimePrecise(void) DECLSPEC_HIDDEN;
extern
NTSTATUS
CDECL
fast_wait_cv
(
RTL_CONDITION_VARIABLE
*
variable
,
const
void
*
value
,
const
LARGE_INTEGER
*
timeout
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
CDECL
get_dynamic_environment
(
WCHAR
*
env
,
SIZE_T
*
size
)
DECLSPEC_HIDDEN
;
extern
USHORT
*
CDECL
get_unix_codepage_data
(
void
)
DECLSPEC_HIDDEN
;
extern
void
CDECL
get_locales
(
WCHAR
*
sys
,
WCHAR
*
user
)
DECLSPEC_HIDDEN
;
extern
void
CDECL
virtual_release_address_space
(
void
)
DECLSPEC_HIDDEN
;
...
...
dlls/ntdll/unixlib.h
View file @
0a6f070f
...
...
@@ -27,7 +27,7 @@
struct
_DISPATCHER_CONTEXT
;
/* increment this when you change the function table */
#define NTDLL_UNIXLIB_VERSION 11
0
#define NTDLL_UNIXLIB_VERSION 11
1
struct
unix_funcs
{
...
...
@@ -71,7 +71,6 @@ struct unix_funcs
double
(
CDECL
*
tan
)(
double
d
);
/* environment functions */
NTSTATUS
(
CDECL
*
get_dynamic_environment
)(
WCHAR
*
env
,
SIZE_T
*
size
);
USHORT
*
(
CDECL
*
get_unix_codepage_data
)(
void
);
void
(
CDECL
*
get_locales
)(
WCHAR
*
sys
,
WCHAR
*
user
);
...
...
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