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

startup too.
This commit is contained in:
Alexandre Julliard 2004-05-05 05:56:37 +00:00
parent ab92cfe0a0
commit ae42aad2ae
2 changed files with 3 additions and 2 deletions

View File

@ -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 */
}

View File

@ -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);