Commit ae42aad2 authored by Alexandre Julliard's avatar Alexandre Julliard

Initialize ntdll debugging earlier on so that we can trace the server

startup too.
parent ab92cfe0
......@@ -309,9 +309,12 @@ static int NTDLL_dbg_vlog( unsigned int cls, const char *channel,
*/
void debug_init(void)
{
extern void __wine_dbg_ntdll_init(void);
__wine_dbgstr_an = NTDLL_dbgstr_an;
__wine_dbgstr_wn = NTDLL_dbgstr_wn;
__wine_dbg_vsprintf = NTDLL_dbg_vsprintf;
__wine_dbg_vprintf = NTDLL_dbg_vprintf;
__wine_dbg_vlog = NTDLL_dbg_vlog;
__wine_dbg_ntdll_init(); /* hack: register debug channels early */
}
......@@ -2015,11 +2015,9 @@ void __wine_process_init( int argc, char *argv[] )
NTSTATUS status;
ANSI_STRING func_name;
void (* DECLSPEC_NORETURN init_func)();
extern void __wine_dbg_ntdll_init(void);
extern mode_t FILE_umask;
thread_init();
__wine_dbg_ntdll_init(); /* hack: register debug channels early */
/* retrieve current umask */
FILE_umask = umask(0777);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment