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
331947c9
Commit
331947c9
authored
Dec 03, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Move some initialization code to ntdll.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
74eaa341
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
process.c
dlls/kernel32/process.c
+0
-9
debugtools.c
dlls/ntdll/debugtools.c
+2
-0
env.c
dlls/ntdll/env.c
+1
-0
No files found.
dlls/kernel32/process.c
View file @
331947c9
...
...
@@ -170,20 +170,11 @@ void * CDECL __wine_kernel_init(void)
{
static
const
WCHAR
kernel32W
[]
=
{
'k'
,
'e'
,
'r'
,
'n'
,
'e'
,
'l'
,
'3'
,
'2'
,
0
};
PEB
*
peb
=
NtCurrentTeb
()
->
Peb
;
RTL_USER_PROCESS_PARAMETERS
*
params
=
peb
->
ProcessParameters
;
/* Initialize everything */
setbuf
(
stdout
,
NULL
);
setbuf
(
stderr
,
NULL
);
kernel32_handle
=
GetModuleHandleW
(
kernel32W
);
RtlSetUnhandledExceptionFilter
(
UnhandledExceptionFilter
);
LOCALE_Init
();
if
(
!
params
->
CurrentDirectory
.
Handle
)
chdir
(
"/"
);
/* avoid locking removable devices */
return
start_process_wrapper
;
}
...
...
dlls/ntdll/debugtools.c
View file @
331947c9
...
...
@@ -284,6 +284,8 @@ int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine_debug_
*/
void
debug_init
(
void
)
{
setbuf
(
stdout
,
NULL
);
setbuf
(
stderr
,
NULL
);
ntdll_get_thread_data
()
->
debug_info
=
&
initial_info
;
init_done
=
TRUE
;
}
dlls/ntdll/env.c
View file @
331947c9
...
...
@@ -1546,5 +1546,6 @@ done:
RtlInitUnicodeString
(
&
curdir
,
windows_dir
);
RtlSetCurrentDirectory_U
(
&
curdir
);
}
if
(
!
params
->
CurrentDirectory
.
Handle
)
chdir
(
"/"
);
/* avoid locking removable devices */
set_wow64_environment
(
&
params
->
Environment
);
}
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