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
6ef2b655
Commit
6ef2b655
authored
Dec 16, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Reject IDirectDraw3 QI in ddraw.dll.
parent
616ea532
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
ddraw.c
dlls/ddraw/ddraw.c
+5
-2
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+16
-0
No files found.
dlls/ddraw/ddraw.c
View file @
6ef2b655
...
...
@@ -121,8 +121,11 @@ IDirectDrawImpl_QueryInterface(IDirectDraw7 *iface,
}
else
if
(
IsEqualGUID
(
&
IID_IDirectDraw3
,
refiid
)
)
{
*
obj
=
ICOM_INTERFACE
(
This
,
IDirectDraw3
);
TRACE
(
"(%p) Returning IDirectDraw3 interface at %p
\n
"
,
This
,
*
obj
);
/* This Interface exists in ddrawex.dll, it is implemented in a wrapper */
WARN
(
"IDirectDraw3 is not valid in ddraw.dll
\n
"
);
*
obj
=
NULL
;
LeaveCriticalSection
(
&
ddraw_cs
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirectDraw2
,
refiid
)
)
{
...
...
dlls/ddraw/tests/ddrawmodes.c
View file @
6ef2b655
...
...
@@ -385,6 +385,21 @@ static void testcooperativelevels_exclusive(void)
/* All done */
}
static
void
testddraw3
(
void
)
{
const
GUID
My_IID_IDirectDraw3
=
{
0x618f8ad4
,
0x8b7a
,
0x11d0
,
{
0x8f
,
0xcc
,
0x0
,
0xc0
,
0x4f
,
0xd9
,
0x18
,
0x9d
}
};
IDirectDraw3
*
dd3
;
HRESULT
hr
;
hr
=
IDirectDraw_QueryInterface
(
lpDD
,
&
My_IID_IDirectDraw3
,
(
void
**
)
&
dd3
);
ok
(
hr
==
E_NOINTERFACE
,
"QueryInterface for IID_IDirectDraw3 returned 0x%08x, expected E_NOINTERFACE
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
)
&&
dd3
)
IDirectDraw3_Release
(
dd3
);
}
START_TEST
(
ddrawmodes
)
{
createwindow
();
...
...
@@ -394,6 +409,7 @@ START_TEST(ddrawmodes)
if
(
winetest_interactive
)
testdisplaymodes
();
flushdisplaymodes
();
testddraw3
();
releasedirectdraw
();
createdirectdraw
();
...
...
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