Commit 8f097d8c authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt: _initterm doesn't return anything.

parent e11ca0a7
......@@ -339,10 +339,9 @@ void CDECL __wgetmainargs(int *argc, MSVCRT_wchar_t** *wargv, MSVCRT_wchar_t** *
/*********************************************************************
* _initterm (MSVCRT.@)
*/
unsigned int CDECL _initterm(_INITTERMFUN *start,_INITTERMFUN *end)
void CDECL _initterm(_INITTERMFUN *start,_INITTERMFUN *end)
{
_INITTERMFUN* current = start;
unsigned int count=0;
TRACE("(%p,%p)\n",start,end);
while (current<end)
......@@ -352,11 +351,9 @@ unsigned int CDECL _initterm(_INITTERMFUN *start,_INITTERMFUN *end)
TRACE("Call init function %p\n",*current);
(**current)();
TRACE("returned\n");
count++;
}
current++;
}
return count;
}
/*********************************************************************
......
......@@ -32,7 +32,7 @@
#include <errno.h>
typedef void (*_INITTERMFUN)(void);
static unsigned int (*p_initterm)(_INITTERMFUN *start, _INITTERMFUN *end);
static void (*p_initterm)(_INITTERMFUN *start, _INITTERMFUN *end);
static int callbacked;
......@@ -43,8 +43,7 @@ static void initcallback(void)
#define initterm_test(start, end, expected) \
callbacked = 0; \
rc = p_initterm(start, end); \
ok(expected == rc, "_initterm: return result mismatch: got %i, expected %i\n", rc, expected); \
p_initterm(start, end); \
ok(expected == callbacked,"_initterm: callbacks count mismatch: got %i, expected %i\n", callbacked, expected);
static void test_initterm(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment