* 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

@@ -883,6 +883,7 @@ static HANDLE __stdcall
getsem (_pinfo *p, const char *str, int init, int max)
{
HANDLE h;
char sem_name[MAX_PATH];
if (p != NULL)
{
@@ -906,7 +907,7 @@ getsem (_pinfo *p, const char *str, int init, int max)
DWORD winpid = GetCurrentProcessId ();
h = CreateSemaphore (sec_user_nih (sa_buf), init, max,
str = shared_name (str, winpid));
str = shared_name (sem_name, str, winpid));
p = myself;
if (!h)
{
@@ -917,7 +918,7 @@ getsem (_pinfo *p, const char *str, int init, int max)
else
{
h = OpenSemaphore (SEMAPHORE_ALL_ACCESS, FALSE,
shared_name (str, p->dwProcessId));
shared_name (sem_name, str, p->dwProcessId));
if (!h)
{