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
17dea24f
Commit
17dea24f
authored
Jan 28, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Make sure the volatile environment is always loaded.
parent
0daf0528
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
process.c
dlls/kernel32/process.c
+7
-10
No files found.
dlls/kernel32/process.c
View file @
17dea24f
...
...
@@ -410,7 +410,7 @@ static void set_registry_variables( HANDLE hkey, ULONG type )
* %SystemRoot% which are predefined. But Wine defines these in the
* registry, so we need two passes.
*/
static
BOOL
set_registry_environment
(
void
)
static
BOOL
set_registry_environment
(
BOOL
volatile_only
)
{
static
const
WCHAR
env_keyW
[]
=
{
'M'
,
'a'
,
'c'
,
'h'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
...
...
@@ -435,7 +435,7 @@ static BOOL set_registry_environment(void)
/* first the system environment variables */
RtlInitUnicodeString
(
&
nameW
,
env_keyW
);
if
(
NtOpenKey
(
&
hkey
,
KEY_READ
,
&
attr
)
==
STATUS_SUCCESS
)
if
(
!
volatile_only
&&
NtOpenKey
(
&
hkey
,
KEY_READ
,
&
attr
)
==
STATUS_SUCCESS
)
{
set_registry_variables
(
hkey
,
REG_SZ
);
set_registry_variables
(
hkey
,
REG_EXPAND_SZ
);
...
...
@@ -446,7 +446,7 @@ static BOOL set_registry_environment(void)
/* then the ones for the current user */
if
(
RtlOpenCurrentUser
(
KEY_READ
,
&
attr
.
RootDirectory
)
!=
STATUS_SUCCESS
)
return
ret
;
RtlInitUnicodeString
(
&
nameW
,
envW
);
if
(
NtOpenKey
(
&
hkey
,
KEY_READ
,
&
attr
)
==
STATUS_SUCCESS
)
if
(
!
volatile_only
&&
NtOpenKey
(
&
hkey
,
KEY_READ
,
&
attr
)
==
STATUS_SUCCESS
)
{
set_registry_variables
(
hkey
,
REG_SZ
);
set_registry_variables
(
hkey
,
REG_EXPAND_SZ
);
...
...
@@ -1090,7 +1090,7 @@ void CDECL __wine_kernel_init(void)
/* convert old configuration to new format */
convert_old_config
();
got_environment
=
set_registry_environment
();
got_environment
=
set_registry_environment
(
FALSE
);
set_additional_environment
();
}
...
...
@@ -1140,12 +1140,9 @@ void CDECL __wine_kernel_init(void)
ERR
(
"boot event wait timed out
\n
"
);
CloseHandle
(
boot_events
[
0
]
);
if
(
boot_events
[
1
])
CloseHandle
(
boot_events
[
1
]
);
/* if we didn't find environment section, try again now that wineboot has run */
if
(
!
got_environment
)
{
set_registry_environment
();
set_additional_environment
();
}
/* reload environment now that wineboot has run */
set_registry_environment
(
got_environment
);
set_additional_environment
();
}
if
(
!
(
peb
->
ImageBaseAddress
=
LoadLibraryExW
(
main_exe_name
,
0
,
DONT_RESOLVE_DLL_REFERENCES
)))
...
...
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