Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fcd04e59
Commit
fcd04e59
authored
Jul 01, 2011
by
Daniel Verkamp
Committed by
Alexandre Julliard
Jul 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Add test for _get_pgmptr.
parent
1357589e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
data.c
dlls/msvcrt/tests/data.c
+20
-0
No files found.
dlls/msvcrt/tests/data.c
View file @
fcd04e59
...
...
@@ -34,6 +34,8 @@
typedef
void
(
__cdecl
*
_INITTERMFUN
)(
void
);
static
void
(
__cdecl
*
p_initterm
)(
_INITTERMFUN
*
start
,
_INITTERMFUN
*
end
);
static
int
(
__cdecl
*
p_get_pgmptr
)(
char
**
p
);
static
int
callbacked
;
static
void
__cdecl
initcallback
(
void
)
...
...
@@ -108,6 +110,20 @@ static void test_initvar( HMODULE hmsvcrt )
osplatform
,
osvi
.
dwPlatformId
);
}
static
void
test_get_pgmptr
(
void
)
{
char
*
pgm
=
NULL
;
int
res
;
if
(
!
p_get_pgmptr
)
return
;
res
=
p_get_pgmptr
(
&
pgm
);
ok
(
res
==
0
,
"Wrong _get_pgmptr return value %d expected 0
\n
"
,
res
);
ok
(
pgm
!=
NULL
,
"_get_pgmptr returned a NULL pointer
\n
"
);
}
START_TEST
(
data
)
{
HMODULE
hmsvcrt
;
...
...
@@ -116,7 +132,11 @@ START_TEST(data)
if
(
!
hmsvcrt
)
hmsvcrt
=
GetModuleHandleA
(
"msvcrtd.dll"
);
if
(
hmsvcrt
)
{
p_initterm
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_initterm"
);
p_get_pgmptr
=
(
void
*
)
GetProcAddress
(
hmsvcrt
,
"_get_pgmptr"
);
}
test_initterm
();
test_initvar
(
hmsvcrt
);
test_get_pgmptr
();
}
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