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
ff23e5a9
Commit
ff23e5a9
authored
Jun 09, 2005
by
Stefan Leichter
Committed by
Alexandre Julliard
Jun 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ddraw tests loadable on NT4.
parent
9b3b7caf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
d3d.c
dlls/ddraw/tests/d3d.c
+20
-1
No files found.
dlls/ddraw/tests/d3d.c
View file @
ff23e5a9
...
...
@@ -40,12 +40,25 @@ static LPDIRECT3D7 lpD3D = NULL;
static
LPDIRECTDRAWSURFACE7
lpDDS
=
NULL
;
static
LPDIRECT3DDEVICE7
lpD3DDevice
=
NULL
;
static
HRESULT
(
WINAPI
*
pDirectDrawCreateEx
)(
LPGUID
,
LPVOID
*
,
REFIID
,
LPUNKNOWN
);
static
void
init_function_pointers
(
void
)
{
HMODULE
hmod
=
GetModuleHandleA
(
"ddraw.dll"
);
if
(
hmod
)
{
pDirectDrawCreateEx
=
(
void
*
)
GetProcAddress
(
hmod
,
"DirectDrawCreateEx"
);
}
}
static
void
CreateDirect3D
()
{
HRESULT
rc
;
DDSURFACEDESC2
ddsd
;
rc
=
DirectDrawCreateEx
(
NULL
,
(
void
**
)
&
lpDD
,
rc
=
p
DirectDrawCreateEx
(
NULL
,
(
void
**
)
&
lpDD
,
&
IID_IDirectDraw7
,
NULL
);
ok
(
rc
==
DD_OK
,
"DirectDrawCreateEx returned: %lx
\n
"
,
rc
);
...
...
@@ -190,6 +203,12 @@ static void LightTest()
START_TEST
(
d3d
)
{
init_function_pointers
();
if
(
!
pDirectDrawCreateEx
)
{
trace
(
"function DirectDrawCreateEx not available, skipping tests
\n
"
);
return
;
}
CreateDirect3D
();
LightTest
();
ReleaseDirect3D
();
...
...
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