mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
kernel32: Moved ToolHelpHook16 to kernel16.c, it's not a toolhelp function.
This commit is contained in:
parent
9bf4de22f4
commit
2c491feb4b
@ -106,6 +106,17 @@ LONG WINAPI KERNEL_nop(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* ToolHelpHook (KERNEL.341)
|
||||
* see "Undocumented Windows"
|
||||
*/
|
||||
FARPROC16 WINAPI ToolHelpHook16(FARPROC16 func)
|
||||
{
|
||||
static FARPROC16 hook;
|
||||
|
||||
FIXME("(%p), stub.\n", func);
|
||||
return InterlockedExchangePointer( (void **)&hook, func );
|
||||
}
|
||||
|
||||
/* thunk for 16-bit CreateThread */
|
||||
struct thread_args
|
||||
|
@ -52,8 +52,6 @@ static struct notify
|
||||
|
||||
static int nrofnotifys = 0;
|
||||
|
||||
static FARPROC16 HookNotify = NULL;
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* TaskFindHandle (TOOLHELP.65)
|
||||
@ -226,19 +224,3 @@ BOOL16 WINAPI SystemHeapInfo16( SYSHEAPINFO *pHeapInfo )
|
||||
FreeLibrary16( gdi );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* ToolHelpHook (KERNEL.341)
|
||||
* see "Undocumented Windows"
|
||||
*/
|
||||
FARPROC16 WINAPI ToolHelpHook16(FARPROC16 lpfnNotifyHandler)
|
||||
{
|
||||
FARPROC16 tmp;
|
||||
|
||||
FIXME("(%p), stub.\n", lpfnNotifyHandler);
|
||||
tmp = HookNotify;
|
||||
HookNotify = lpfnNotifyHandler;
|
||||
/* just return previously installed notification function */
|
||||
return tmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user