msvcr90: Implement _initterm_e.
This commit is contained in:
parent
8da1d69c22
commit
40509127a4
|
@ -22,7 +22,15 @@
|
|||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(msvcr90);
|
||||
|
||||
typedef int (CDECL *_INITTERM_E_FN)(void);
|
||||
|
||||
/*********************************************************************
|
||||
* DllMain (MSVCR90.@)
|
||||
*/
|
||||
BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved)
|
||||
{
|
||||
switch (reason)
|
||||
|
@ -35,3 +43,27 @@ BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved)
|
|||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
* _initterm_e (MSVCR90.@)
|
||||
*
|
||||
* call an array of application initialization functions and report the return value
|
||||
*/
|
||||
int CDECL _initterm_e(_INITTERM_E_FN *table, _INITTERM_E_FN *end)
|
||||
{
|
||||
int res = 0;
|
||||
|
||||
TRACE("(%p, %p)\n", table, end);
|
||||
|
||||
while (!res && table < end) {
|
||||
if (*table) {
|
||||
res = (**table)();
|
||||
if (res)
|
||||
TRACE("function %p failed: 0x%x\n", *table, res);
|
||||
|
||||
}
|
||||
table++;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -517,7 +517,7 @@
|
|||
@ stub _i64tow_s
|
||||
@ stub _initptd
|
||||
@ cdecl _initterm(ptr ptr) msvcrt._initterm
|
||||
@ stub _initterm_e
|
||||
@ cdecl _initterm_e(ptr ptr)
|
||||
@ stub _inp
|
||||
@ stub _inpd
|
||||
@ stub _inpw
|
||||
|
|
Loading…
Reference in New Issue