Commit 2ef94114 authored by Alexandre Julliard's avatar Alexandre Julliard

winecrt0: Don't bother passing the environment to the _init function.

We'd have to use the Windows environment anyway, not the Unix one.
parent 61fa9bb0
...@@ -34,7 +34,7 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason, ...@@ -34,7 +34,7 @@ BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason,
if (reason == DLL_PROCESS_ATTACH && __wine_spec_init_state != CONSTRUCTORS_DONE) if (reason == DLL_PROCESS_ATTACH && __wine_spec_init_state != CONSTRUCTORS_DONE)
{ {
call_fini = TRUE; call_fini = TRUE;
_init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); _init( __wine_main_argc, __wine_main_argv, NULL );
} }
ret = DllMain( inst, reason, reserved ); ret = DllMain( inst, reason, reserved );
......
...@@ -31,7 +31,7 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob ...@@ -31,7 +31,7 @@ NTSTATUS DECLSPEC_HIDDEN WINAPI __wine_spec_drv_entry( struct _DRIVER_OBJECT *ob
{ {
BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE); BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE);
if (needs_init) _init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); if (needs_init) _init( __wine_main_argc, __wine_main_argv, NULL );
return DriverEntry( obj, path ); return DriverEntry( obj, path );
/* there is no detach routine so we can't call destructors */ /* there is no detach routine so we can't call destructors */
} }
...@@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb ) ...@@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE); BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE);
DWORD ret; DWORD ret;
if (needs_init) _init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); if (needs_init) _init( __wine_main_argc, __wine_main_argv, NULL );
ret = main( __wine_main_argc, __wine_main_argv ); ret = main( __wine_main_argc, __wine_main_argv );
if (needs_init) _fini(); if (needs_init) _fini();
ExitProcess( ret ); ExitProcess( ret );
......
...@@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb ) ...@@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE); BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE);
DWORD ret; DWORD ret;
if (needs_init) _init( __wine_main_argc, __wine_main_argv, __wine_main_environ ); if (needs_init) _init( __wine_main_argc, __wine_main_argv, NULL );
ret = wmain( __wine_main_argc, __wine_main_wargv ); ret = wmain( __wine_main_argc, __wine_main_wargv );
if (needs_init) _fini(); if (needs_init) _fini();
ExitProcess( ret ); ExitProcess( ret );
......
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