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
d5c2a358
Commit
d5c2a358
authored
Jul 18, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Return a failure code in IDirectDrawSurfaceImpl::QueryInterface if…
ddraw: Return a failure code in IDirectDrawSurfaceImpl::QueryInterface if IDirect3D7::CreateDevice fails.
parent
4be9f0a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
surface.c
dlls/ddraw/surface.c
+8
-3
No files found.
dlls/ddraw/surface.c
View file @
d5c2a358
...
...
@@ -118,10 +118,15 @@ IDirectDrawSurfaceImpl_QueryInterface(IDirectDrawSurface7 *iface,
/* Call into IDirect3D7 for creation */
IDirect3D7_CreateDevice
((
IDirect3D7
*
)
&
This
->
ddraw
->
IDirect3D7_vtbl
,
riid
,
(
IDirectDrawSurface7
*
)
This
,
&
d3d
);
*
obj
=
d3d
?
(
IDirect3DDevice
*
)
&
((
IDirect3DDeviceImpl
*
)
d3d
)
->
IDirect3DDevice_vtbl
:
NULL
;
TRACE
(
"(%p) Returning IDirect3DDevice interface at %p
\n
"
,
This
,
*
obj
);
if
(
d3d
)
{
*
obj
=
(
IDirect3DDevice
*
)
&
((
IDirect3DDeviceImpl
*
)
d3d
)
->
IDirect3DDevice_vtbl
;
TRACE
(
"(%p) Returning IDirect3DDevice interface at %p
\n
"
,
This
,
*
obj
);
return
S_OK
;
}
return
S_OK
;
WARN
(
"Unable to create a IDirect3DDevice instance, returning E_NOINTERFACE
\n
"
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture
,
riid
)
||
IsEqualGUID
(
&
IID_IDirect3DTexture2
,
riid
))
...
...
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