Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8f097d8c
Commit
8f097d8c
authored
Mar 14, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: _initterm doesn't return anything.
parent
e11ca0a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
data.c
dlls/msvcrt/data.c
+1
-4
data.c
dlls/msvcrt/tests/data.c
+2
-3
No files found.
dlls/msvcrt/data.c
View file @
8f097d8c
...
...
@@ -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
;
}
/*********************************************************************
...
...
dlls/msvcrt/tests/data.c
View file @
8f097d8c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment