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
d06aa8d8
Commit
d06aa8d8
authored
Jun 07, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Fix QueryInterface.
QueryInterface should return S_OK on success and set the object pointer to NULL on failure. This is similar to the patch Ivan submitted a while ago for wined3d.
parent
034fc473
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
30 additions
and
15 deletions
+30
-15
basetexture.c
dlls/d3d8/basetexture.c
+2
-1
cubetexture.c
dlls/d3d8/cubetexture.c
+2
-1
device.c
dlls/d3d8/device.c
+2
-1
directx.c
dlls/d3d8/directx.c
+2
-1
indexbuffer.c
dlls/d3d8/indexbuffer.c
+2
-1
pixelshader.c
dlls/d3d8/pixelshader.c
+2
-1
resource.c
dlls/d3d8/resource.c
+2
-1
stateblock.c
dlls/d3d8/stateblock.c
+2
-1
surface.c
dlls/d3d8/surface.c
+2
-1
swapchain.c
dlls/d3d8/swapchain.c
+2
-1
texture.c
dlls/d3d8/texture.c
+2
-1
vertexbuffer.c
dlls/d3d8/vertexbuffer.c
+2
-1
vertexshader.c
dlls/d3d8/vertexshader.c
+2
-1
volume.c
dlls/d3d8/volume.c
+2
-1
volumetexture.c
dlls/d3d8/volumetexture.c
+2
-1
No files found.
dlls/d3d8/basetexture.c
View file @
d06aa8d8
...
...
@@ -32,11 +32,12 @@ HRESULT WINAPI IDirect3DBaseTexture8Impl_QueryInterface(LPDIRECT3DBASETEXTURE8 i
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DBaseTexture8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/cubetexture.c
View file @
d06aa8d8
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_QueryInterface(LPDIRECT3DCUBETEXTURE8 i
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DCubeTexture8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/device.c
View file @
d06aa8d8
...
...
@@ -45,10 +45,11 @@ HRESULT WINAPI IDirect3DDevice8Impl_QueryInterface(LPDIRECT3DDEVICE8 iface,REFII
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DDevice8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/directx.c
View file @
d06aa8d8
...
...
@@ -46,10 +46,11 @@ HRESULT WINAPI IDirect3D8Impl_QueryInterface(LPDIRECT3D8 iface, REFIID riid,LPVO
||
IsEqualGUID
(
riid
,
&
IID_IDirect3D8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/indexbuffer.c
View file @
d06aa8d8
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DIndexBuffer8Impl_QueryInterface(LPDIRECT3DINDEXBUFFER8 i
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DIndexBuffer8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/pixelshader.c
View file @
d06aa8d8
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DPixelShader8Impl_QueryInterface(IDirect3DPixelShader8 *i
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DPixelShader8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/resource.c
View file @
d06aa8d8
...
...
@@ -31,10 +31,11 @@ HRESULT WINAPI IDirect3DResource8Impl_QueryInterface(LPDIRECT3DRESOURCE8 iface,
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/stateblock.c
View file @
d06aa8d8
...
...
@@ -34,10 +34,11 @@ HRESULT WINAPI IDirect3DStateBlock8Impl_QueryInterface(IDirect3DStateBlock8 *ifa
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DStateBlock8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/surface.c
View file @
d06aa8d8
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DSurface8Impl_QueryInterface(LPDIRECT3DSURFACE8 iface, RE
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DSurface8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/swapchain.c
View file @
d06aa8d8
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DSwapChain8Impl_QueryInterface(LPDIRECT3DSWAPCHAIN8 iface
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DSwapChain8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/texture.c
View file @
d06aa8d8
...
...
@@ -33,10 +33,11 @@ HRESULT WINAPI IDirect3DTexture8Impl_QueryInterface(LPDIRECT3DTEXTURE8 iface, RE
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DTexture8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p) not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/vertexbuffer.c
View file @
d06aa8d8
...
...
@@ -32,11 +32,12 @@ HRESULT WINAPI IDirect3DVertexBuffer8Impl_QueryInterface(LPDIRECT3DVERTEXBUFFER8
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVertexBuffer8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/vertexshader.c
View file @
d06aa8d8
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DVertexShader8Impl_QueryInterface(IDirect3DVertexShader8
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVertexShader8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/volume.c
View file @
d06aa8d8
...
...
@@ -31,10 +31,11 @@ HRESULT WINAPI IDirect3DVolume8Impl_QueryInterface(LPDIRECT3DVOLUME8 iface, REFI
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVolume8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
dlls/d3d8/volumetexture.c
View file @
d06aa8d8
...
...
@@ -33,10 +33,11 @@ HRESULT WINAPI IDirect3DVolumeTexture8Impl_QueryInterface(LPDIRECT3DVOLUMETEXTUR
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVolumeTexture8
))
{
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
return
D3D
_OK
;
return
S
_OK
;
}
WARN
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
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