* shared_info.h: Match shared_name declaration with below change.

* shared.cc (shared_name): Use incoming char * parameter instead of
	local static buffer.
	(open_shared): Accomodate new calling convention for shared_name.
	* exceptions.cc (events_init): Ditto.
	* sigproc.cc (getsem): Ditto.
	* syscalls.cc (login): Ditto.
	(logout): Ditto.
	(pututline): Ditto.
This commit is contained in:
Corinna Vinschen
2003-05-21 08:01:57 +00:00
parent 3a9c82d011
commit 5c768c978c
6 changed files with 35 additions and 14 deletions

View File

@@ -1134,11 +1134,13 @@ void
events_init (void)
{
char *name;
char mutex_name[MAX_PATH];
/* title_mutex protects modification of console title. It's necessary
while finding console window handle */
if (!(title_mutex = CreateMutex (&sec_all_nih, FALSE,
name = shared_name ("title_mutex", 0))))
name = shared_name (mutex_name,
"title_mutex", 0))))
api_fatal ("can't create title mutex '%s', %E", name);
ProtectHandle (title_mutex);