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

We'd have to use the Windows environment anyway, not the Unix one.
This commit is contained in:
Alexandre Julliard 2009-03-31 16:06:11 +02:00
parent 61fa9bb061
commit 2ef9411434
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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);
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 );
/* there is no detach routine so we can't call destructors */
}

View File

@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE);
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 );
if (needs_init) _fini();
ExitProcess( ret );

View File

@ -32,7 +32,7 @@ DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
BOOL needs_init = (__wine_spec_init_state != CONSTRUCTORS_DONE);
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 );
if (needs_init) _fini();
ExitProcess( ret );