mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 18:03:39 +00:00
msvcrt: _initterm doesn't return anything.
This commit is contained in:
parent
e11ca0a7fd
commit
8f097d8c9d
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue