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
55faa6e9
Commit
55faa6e9
authored
Sep 02, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Let tests run again on win9x.
parent
e79b7473
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
overlay.c
dlls/ddraw/tests/overlay.c
+10
-1
No files found.
dlls/ddraw/tests/overlay.c
View file @
55faa6e9
...
...
@@ -24,6 +24,8 @@
#include "ddraw.h"
#include "unknwn.h"
static
HRESULT
(
WINAPI
*
pDirectDrawCreateEx
)(
LPGUID
,
LPVOID
*
,
REFIID
,
LPUNKNOWN
);
static
IDirectDraw7
*
ddraw
=
NULL
;
static
IDirectDrawSurface7
*
primary
=
NULL
;
...
...
@@ -51,8 +53,15 @@ static BOOL CreateDirectDraw(void)
HRESULT
hr
;
DDSURFACEDESC2
ddsd
;
IDirectDrawSurface7
*
overlay
=
NULL
;
HMODULE
hmod
=
GetModuleHandleA
(
"ddraw.dll"
);
pDirectDrawCreateEx
=
(
void
*
)
GetProcAddress
(
hmod
,
"DirectDrawCreateEx"
);
if
(
!
pDirectDrawCreateEx
)
{
win_skip
(
"DirectDrawCreateEx is not available
\n
"
);
return
FALSE
;
}
hr
=
DirectDrawCreateEx
(
NULL
,
(
void
**
)
&
ddraw
,
&
IID_IDirectDraw7
,
NULL
);
hr
=
p
DirectDrawCreateEx
(
NULL
,
(
void
**
)
&
ddraw
,
&
IID_IDirectDraw7
,
NULL
);
ok
(
hr
==
DD_OK
||
hr
==
DDERR_NODIRECTDRAWSUPPORT
,
"DirectDrawCreateEx returned: %x
\n
"
,
hr
);
if
(
!
ddraw
)
{
trace
(
"DirectDrawCreateEx() failed with an error %x
\n
"
,
hr
);
...
...
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