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
1a145bb5
Commit
1a145bb5
authored
Nov 23, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: We cannot link with _initterm() with Visual C++, so we have to load it dynamically.
parent
89bb5460
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
data.c
dlls/msvcrt/tests/data.c
+11
-2
No files found.
dlls/msvcrt/tests/data.c
View file @
1a145bb5
...
...
@@ -32,7 +32,7 @@
#include <errno.h>
typedef
void
(
*
_INITTERMFUN
)(
void
);
extern
unsigned
int
CDECL
_initterm
(
_INITTERMFUN
*
start
,
_INITTERMFUN
*
end
);
static
unsigned
int
(
*
p_initterm
)(
_INITTERMFUN
*
start
,
_INITTERMFUN
*
end
);
static
int
callbacked
;
...
...
@@ -43,7 +43,7 @@ void initcallback(void)
#define initterm_test(start, end, expected) \
callbacked = 0; \
rc = _initterm(start, end); \
rc =
p
_initterm(start, end); \
ok(expected == rc, "_initterm: return result mismatch: got %i, expected %i\n", rc, expected); \
ok(expected == callbacked,"_initterm: callbacks count mismatch: got %i, expected %i\n", callbacked, expected);
...
...
@@ -53,6 +53,9 @@ void test_initterm(void)
int
rc
;
static
_INITTERMFUN
callbacks
[
4
];
if
(
!
p_initterm
)
return
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
callbacks
[
i
]
=
initcallback
;
...
...
@@ -68,5 +71,11 @@ void test_initterm(void)
START_TEST
(
data
)
{
HMODULE
hmsvcrt
;
hmsvcrt
=
GetModuleHandleA
(
"msvcrt.dll"
);
if
(
!
hmsvcrt
)
hmsvcrt
=
GetModuleHandleA
(
"msvcrtd.dll"
);
if
(
hmsvcrt
)
p_initterm
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_initterm"
);
test_initterm
();
}
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