msvcr90: Implement _initterm_e.

This commit is contained in:
Detlef Riekenberg 2010-03-19 12:28:53 +01:00 committed by Alexandre Julliard
parent 8da1d69c22
commit 40509127a4
2 changed files with 33 additions and 1 deletions

View File

@ -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;
}

View File

@ -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