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
d9f37dd0
Commit
d9f37dd0
authored
Aug 26, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof/tests: Run tests again on win9x.
parent
42563b40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
d3dxof.c
dlls/d3dxof/tests/d3dxof.c
+24
-2
No files found.
dlls/d3dxof/tests/d3dxof.c
View file @
d9f37dd0
...
...
@@ -23,6 +23,9 @@
#include "wine/test.h"
#include "dxfile.h"
static
HMODULE
hd3dxof
;
static
HRESULT
(
WINAPI
*
pDirectXFileCreate
)(
LPDIRECTXFILE
*
);
char
template
[]
=
"xof 0302txt 0064
\n
"
"template Header
\n
"
...
...
@@ -33,6 +36,14 @@ char template[] =
"DWORD flags ;
\n
"
"}
\n
"
;
static
void
init_function_pointers
(
void
)
{
/* We have to use LoadLibrary as no d3dxof functions are referenced directly */
hd3dxof
=
LoadLibraryA
(
"d3dxof.dll"
);
pDirectXFileCreate
=
(
void
*
)
GetProcAddress
(
hd3dxof
,
"DirectXFileCreate"
);
}
static
unsigned
long
getRefcount
(
IUnknown
*
iface
)
{
IUnknown_AddRef
(
iface
);
...
...
@@ -44,11 +55,18 @@ static void test_d3dxof(void)
HRESULT
hr
;
unsigned
long
ref
;
LPDIRECTXFILE
lpDirectXFile
=
NULL
;
hr
=
DirectXFileCreate
(
&
lpDirectXFile
);
if
(
!
pDirectXFileCreate
)
{
win_skip
(
"DirectXFileCreate is not available
\n
"
);
return
;
}
hr
=
pDirectXFileCreate
(
&
lpDirectXFile
);
ok
(
hr
==
DXFILE_OK
,
"DirectXFileCreate: %x
\n
"
,
hr
);
if
(
!
lpDirectXFile
)
{
trace
(
"Couldn't create DirectXFile interface, skipping tests
\n
"
);
skip
(
"Couldn't create DirectXFile interface
\n
"
);
return
;
}
...
...
@@ -71,5 +89,9 @@ static void test_d3dxof(void)
START_TEST
(
d3dxof
)
{
init_function_pointers
();
test_d3dxof
();
FreeLibrary
(
hd3dxof
);
}
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