From bda3969d98b10e48d7edcc62d6d774ff06afbdab Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 24 May 1999 15:01:05 +0000 Subject: [PATCH] Removed process argument to PROCESS_CallUserSignalProc. --- include/process.h | 2 +- loader/ne/module.c | 2 +- loader/task.c | 14 +++++++------- scheduler/thread.c | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/process.h b/include/process.h index 64969ce78cf..f48ee2bc1e3 100644 --- a/include/process.h +++ b/include/process.h @@ -155,7 +155,7 @@ extern PDB *PROCESS_Current(void); extern BOOL PROCESS_IsCurrent( HANDLE handle ); extern PDB *PROCESS_Initial(void); extern PDB *PROCESS_IdToPDB( DWORD id ); -extern void PROCESS_CallUserSignalProc( UINT uCode, DWORD dwThreadOrProcessId, HMODULE hModule ); +extern void PROCESS_CallUserSignalProc( UINT uCode, HMODULE hModule ); extern PDB *PROCESS_Create( struct _NE_MODULE *pModule, LPCSTR cmd_line, LPCSTR env, HINSTANCE16 hInstance, HINSTANCE16 hPrevInstance, diff --git a/loader/ne/module.c b/loader/ne/module.c index 20ba983584e..f715efad27d 100644 --- a/loader/ne/module.c +++ b/loader/ne/module.c @@ -1218,7 +1218,7 @@ static BOOL16 NE_FreeModule( HMODULE16 hModule, BOOL call_wep ) pTask->userhandler( hModule, USIG16_DLL_UNLOAD, 0, pTask->hInstance, pTask->hQueue ); - PROCESS_CallUserSignalProc( USIG_DLL_UNLOAD_WIN16, 0, hModule ); + PROCESS_CallUserSignalProc( USIG_DLL_UNLOAD_WIN16, hModule ); } else call_wep = FALSE; /* We are freeing a task -> no more WEPs */ diff --git a/loader/task.c b/loader/task.c index 369920e8ca7..61cb6df8ad5 100644 --- a/loader/task.c +++ b/loader/task.c @@ -249,10 +249,10 @@ static void TASK_CallToStart(void) InitializeCriticalSection( &PROCESS_Current()->crit_section ); /* Call USER signal proc */ - PROCESS_CallUserSignalProc( USIG_THREAD_INIT, 0, 0 ); /* for initial thread */ - PROCESS_CallUserSignalProc( USIG_PROCESS_INIT, 0, 0 ); - PROCESS_CallUserSignalProc( USIG_PROCESS_LOADED, 0, 0 ); - PROCESS_CallUserSignalProc( USIG_PROCESS_RUNNING, 0, 0 ); + PROCESS_CallUserSignalProc( USIG_THREAD_INIT, 0 ); /* for initial thread */ + PROCESS_CallUserSignalProc( USIG_PROCESS_INIT, 0 ); + PROCESS_CallUserSignalProc( USIG_PROCESS_LOADED, 0 ); + PROCESS_CallUserSignalProc( USIG_PROCESS_RUNNING, 0 ); if (pModule->flags & NE_FFLAGS_WIN32) { @@ -575,9 +575,9 @@ void TASK_KillTask( HTASK16 hTask ) pTask->userhandler( hTask, USIG16_TERMINATION, 0, pTask->hInstance, pTask->hQueue ); - PROCESS_CallUserSignalProc( USIG_PROCESS_EXIT, 0, 0 ); - PROCESS_CallUserSignalProc( USIG_THREAD_EXIT, 0, 0 ); /* FIXME */ - PROCESS_CallUserSignalProc( USIG_PROCESS_DESTROY, 0, 0 ); + PROCESS_CallUserSignalProc( USIG_PROCESS_EXIT, 0 ); + PROCESS_CallUserSignalProc( USIG_THREAD_EXIT, 0 ); /* FIXME */ + PROCESS_CallUserSignalProc( USIG_PROCESS_DESTROY, 0 ); if (nTaskCount <= 1) { diff --git a/scheduler/thread.c b/scheduler/thread.c index 1c61dd695d4..ee8bf3720a2 100644 --- a/scheduler/thread.c +++ b/scheduler/thread.c @@ -162,7 +162,7 @@ void CALLBACK THREAD_FreeTHDB( ULONG_PTR arg ) TRACE("(%p) called\n", thdb ); SERVICE_Delete( thdb->cleanup ); - PROCESS_CallUserSignalProc( USIG_THREAD_EXIT, 0, 0 ); + PROCESS_CallUserSignalProc( USIG_THREAD_EXIT, 0 ); CloseHandle( thdb->event ); while (*pptr && (*pptr != thdb)) pptr = &(*pptr)->next; @@ -292,7 +292,7 @@ static void THREAD_Start(void) { THDB *thdb = THREAD_Current(); LPTHREAD_START_ROUTINE func = (LPTHREAD_START_ROUTINE)thdb->entry_point; - PROCESS_CallUserSignalProc( USIG_THREAD_INIT, 0, 0 ); + PROCESS_CallUserSignalProc( USIG_THREAD_INIT, 0 ); PE_InitTls(); MODULE_DllThreadAttach( NULL );