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
4551135f
Commit
4551135f
authored
Aug 27, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use proper helpers for iface calls.
parent
1524cc2a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
material.c
dlls/ddraw/material.c
+1
-1
surface.c
dlls/ddraw/surface.c
+10
-10
vertexbuffer.c
dlls/ddraw/vertexbuffer.c
+3
-3
No files found.
dlls/ddraw/material.c
View file @
4551135f
...
...
@@ -75,7 +75,7 @@ static HRESULT WINAPI d3d_material3_QueryInterface(IDirect3DMaterial3 *iface, RE
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DMaterial3
_AddRef
(
iface
);
*
obp
=
iface
;
TRACE
(
" Creating IUnknown interface at %p.
\n
"
,
*
obp
);
return
S_OK
;
...
...
dlls/ddraw/surface.c
View file @
4551135f
...
...
@@ -5440,13 +5440,13 @@ struct ddraw_surface *unsafe_impl_from_IDirectDrawSurface7(IDirectDrawSurface7 *
if
(
!
iface
)
return
NULL
;
if
(
iface
->
lpVtbl
!=
&
ddraw_surface7_vtbl
)
{
HRESULT
hr
=
I
Unknown
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface7
,
(
void
**
)
&
iface
);
HRESULT
hr
=
I
DirectDrawSurface7
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface7
,
(
void
**
)
&
iface
);
if
(
FAILED
(
hr
))
{
WARN
(
"Object %p doesn't expose interface IDirectDrawSurface7.
\n
"
,
iface
);
return
NULL
;
}
I
Unknown
_Release
(
iface
);
I
DirectDrawSurface7
_Release
(
iface
);
}
return
CONTAINING_RECORD
(
iface
,
struct
ddraw_surface
,
IDirectDrawSurface7_iface
);
}
...
...
@@ -5456,13 +5456,13 @@ struct ddraw_surface *unsafe_impl_from_IDirectDrawSurface4(IDirectDrawSurface4 *
if
(
!
iface
)
return
NULL
;
if
(
iface
->
lpVtbl
!=
&
ddraw_surface4_vtbl
)
{
HRESULT
hr
=
I
Unknown
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface4
,
(
void
**
)
&
iface
);
HRESULT
hr
=
I
DirectDrawSurface4
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface4
,
(
void
**
)
&
iface
);
if
(
FAILED
(
hr
))
{
WARN
(
"Object %p doesn't expose interface IDirectDrawSurface4.
\n
"
,
iface
);
return
NULL
;
}
I
Unknown
_Release
(
iface
);
I
DirectDrawSurface4
_Release
(
iface
);
}
return
CONTAINING_RECORD
(
iface
,
struct
ddraw_surface
,
IDirectDrawSurface4_iface
);
}
...
...
@@ -5472,13 +5472,13 @@ static struct ddraw_surface *unsafe_impl_from_IDirectDrawSurface3(IDirectDrawSur
if
(
!
iface
)
return
NULL
;
if
(
iface
->
lpVtbl
!=
&
ddraw_surface3_vtbl
)
{
HRESULT
hr
=
I
Unknown
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface3
,
(
void
**
)
&
iface
);
HRESULT
hr
=
I
DirectDrawSurface3
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface3
,
(
void
**
)
&
iface
);
if
(
FAILED
(
hr
))
{
WARN
(
"Object %p doesn't expose interface IDirectDrawSurface3.
\n
"
,
iface
);
return
NULL
;
}
I
Unknown
_Release
(
iface
);
I
DirectDrawSurface3
_Release
(
iface
);
}
return
CONTAINING_RECORD
(
iface
,
struct
ddraw_surface
,
IDirectDrawSurface3_iface
);
}
...
...
@@ -5488,13 +5488,13 @@ static struct ddraw_surface *unsafe_impl_from_IDirectDrawSurface2(IDirectDrawSur
if
(
!
iface
)
return
NULL
;
if
(
iface
->
lpVtbl
!=
&
ddraw_surface2_vtbl
)
{
HRESULT
hr
=
I
Unknown
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface2
,
(
void
**
)
&
iface
);
HRESULT
hr
=
I
DirectDrawSurface2
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface2
,
(
void
**
)
&
iface
);
if
(
FAILED
(
hr
))
{
WARN
(
"Object %p doesn't expose interface IDirectDrawSurface2.
\n
"
,
iface
);
return
NULL
;
}
I
Unknown
_Release
(
iface
);
I
DirectDrawSurface2
_Release
(
iface
);
}
return
CONTAINING_RECORD
(
iface
,
struct
ddraw_surface
,
IDirectDrawSurface2_iface
);
}
...
...
@@ -5504,13 +5504,13 @@ struct ddraw_surface *unsafe_impl_from_IDirectDrawSurface(IDirectDrawSurface *if
if
(
!
iface
)
return
NULL
;
if
(
iface
->
lpVtbl
!=
&
ddraw_surface1_vtbl
)
{
HRESULT
hr
=
I
Unknown
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface
,
(
void
**
)
&
iface
);
HRESULT
hr
=
I
DirectDrawSurface
_QueryInterface
(
iface
,
&
IID_IDirectDrawSurface
,
(
void
**
)
&
iface
);
if
(
FAILED
(
hr
))
{
WARN
(
"Object %p doesn't expose interface IDirectDrawSurface.
\n
"
,
iface
);
return
NULL
;
}
I
Unknown
_Release
(
iface
);
I
DirectDrawSurface
_Release
(
iface
);
}
return
CONTAINING_RECORD
(
iface
,
struct
ddraw_surface
,
IDirectDrawSurface_iface
);
}
...
...
dlls/ddraw/vertexbuffer.c
View file @
4551135f
...
...
@@ -66,21 +66,21 @@ static HRESULT WINAPI d3d_vertex_buffer7_QueryInterface(IDirect3DVertexBuffer7 *
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
)
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DVertexBuffer7
_AddRef
(
iface
);
*
obj
=
iface
;
TRACE
(
" Creating IUnknown interface at %p.
\n
"
,
*
obj
);
return
S_OK
;
}
if
(
IsEqualGUID
(
&
IID_IDirect3DVertexBuffer
,
riid
)
)
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DVertexBuffer7
_AddRef
(
iface
);
*
obj
=
&
buffer
->
IDirect3DVertexBuffer_iface
;
TRACE
(
" Creating IDirect3DVertexBuffer interface %p
\n
"
,
*
obj
);
return
S_OK
;
}
if
(
IsEqualGUID
(
&
IID_IDirect3DVertexBuffer7
,
riid
)
)
{
I
Unknown
_AddRef
(
iface
);
I
Direct3DVertexBuffer7
_AddRef
(
iface
);
*
obj
=
iface
;
TRACE
(
" Creating IDirect3DVertexBuffer7 interface %p
\n
"
,
*
obj
);
return
S_OK
;
...
...
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