* 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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user