* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
user_shared_initialize_1 from here. (dll_crt0_1): Remove dynamically_loaded check. Just call malloc_init and user_shared_initialize unconditionally. * shared.cc (user_shared_create): Rename from user_shared_initialize. (user_shared_initialize): Rename from user_shared_initialize_1. Move complete user_shared content initialization code here from user_shared_create. * syscalls.cc (seteuid32): Remove call to user_shared_initialize_1. That is implied by the "true" argument to user_shared_create().
This commit is contained in:
@ -163,6 +163,7 @@ enum shared_locations
|
||||
SH_JUSTOPEN
|
||||
|
||||
};
|
||||
|
||||
void __stdcall memory_init ();
|
||||
void __stdcall shared_destroy ();
|
||||
|
||||
@ -185,6 +186,6 @@ char *__stdcall shared_name (char *, const char *, int);
|
||||
void *__stdcall open_shared (const char *name, int n, HANDLE &shared_h, DWORD size,
|
||||
shared_locations&, PSECURITY_ATTRIBUTES psa = &sec_all,
|
||||
DWORD access = FILE_MAP_READ | FILE_MAP_WRITE);
|
||||
extern void user_shared_initialize (bool reinit);
|
||||
extern void user_shared_initialize_1 ();
|
||||
extern void user_shared_create (bool reinit);
|
||||
extern void user_shared_initialize ();
|
||||
|
||||
|
Reference in New Issue
Block a user