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
fe2b31a5
Commit
fe2b31a5
authored
Feb 14, 2005
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load advpack.dll at runtime to avoid link problems with the platform
sdk.
parent
737da586
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
Makefile.in
dlls/advpack/tests/Makefile.in
+1
-1
advpack.c
dlls/advpack/tests/advpack.c
+16
-5
No files found.
dlls/advpack/tests/Makefile.in
View file @
fe2b31a5
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
advpack.dll
IMPORTS
=
advpack
user32 kernel32
IMPORTS
=
user32 kernel32
CTESTS
=
\
advpack.c
...
...
dlls/advpack/tests/advpack.c
View file @
fe2b31a5
...
...
@@ -18,12 +18,14 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#include <windows.h>
#include <advpub.h>
#include "wine/test.h"
#include "advpub.h"
static
HRESULT
(
WINAPI
*
pGetVersionFromFile
)(
LPSTR
,
LPDWORD
,
LPDWORD
,
BOOL
);
static
void
version_test
()
{
...
...
@@ -31,7 +33,7 @@ static void version_test()
DWORD
major
,
minor
;
major
=
minor
=
0
;
hr
=
GetVersionFromFile
(
"kernel32.dll"
,
&
major
,
&
minor
,
FALSE
);
hr
=
p
GetVersionFromFile
(
"kernel32.dll"
,
&
major
,
&
minor
,
FALSE
);
ok
(
hr
==
S_OK
,
"GetVersionFromFileEx(kernel32.dll) failed, returned "
"0x%08lx
\n
"
,
hr
);
...
...
@@ -39,7 +41,7 @@ static void version_test()
major
,
minor
);
major
=
minor
=
0
;
hr
=
GetVersionFromFile
(
"kernel32.dll"
,
&
major
,
&
minor
,
TRUE
);
hr
=
p
GetVersionFromFile
(
"kernel32.dll"
,
&
major
,
&
minor
,
TRUE
);
ok
(
hr
==
S_OK
,
"GetVersionFromFileEx(kernel32.dll) failed, returned "
"0x%08lx
\n
"
,
hr
);
...
...
@@ -49,5 +51,14 @@ static void version_test()
START_TEST
(
advpack
)
{
HMODULE
hdll
;
hdll
=
LoadLibraryA
(
"advpack.dll"
);
if
(
!
hdll
)
return
;
pGetVersionFromFile
=
(
void
*
)
GetProcAddress
(
hdll
,
"GetVersionFromFile"
);
if
(
!
pGetVersionFromFile
)
return
;
version_test
();
}
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