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
34e2e2bd
Commit
34e2e2bd
authored
Jun 07, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: 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
d06aa8d8
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
34 additions
and
17 deletions
+34
-17
basetexture.c
dlls/d3d9/basetexture.c
+2
-1
cubetexture.c
dlls/d3d9/cubetexture.c
+2
-1
device.c
dlls/d3d9/device.c
+2
-1
directx.c
dlls/d3d9/directx.c
+2
-1
indexbuffer.c
dlls/d3d9/indexbuffer.c
+2
-1
pixelshader.c
dlls/d3d9/pixelshader.c
+2
-1
query.c
dlls/d3d9/query.c
+2
-1
resource.c
dlls/d3d9/resource.c
+2
-1
stateblock.c
dlls/d3d9/stateblock.c
+2
-1
surface.c
dlls/d3d9/surface.c
+2
-1
swapchain.c
dlls/d3d9/swapchain.c
+2
-1
texture.c
dlls/d3d9/texture.c
+2
-1
vertexbuffer.c
dlls/d3d9/vertexbuffer.c
+2
-1
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+2
-1
vertexshader.c
dlls/d3d9/vertexshader.c
+2
-1
volume.c
dlls/d3d9/volume.c
+2
-1
volumetexture.c
dlls/d3d9/volumetexture.c
+2
-1
No files found.
dlls/d3d9/basetexture.c
View file @
34e2e2bd
...
...
@@ -33,10 +33,11 @@ HRESULT WINAPI IDirect3DBaseTexture9Impl_QueryInterface(LPDIRECT3DBASETEXTURE9 i
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DBaseTexture9
))
{
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/d3d9/cubetexture.c
View file @
34e2e2bd
...
...
@@ -35,10 +35,11 @@ HRESULT WINAPI IDirect3DCubeTexture9Impl_QueryInterface(LPDIRECT3DCUBETEXTURE9 i
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DCubeTexture9
))
{
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/d3d9/device.c
View file @
34e2e2bd
...
...
@@ -34,10 +34,11 @@ HRESULT WINAPI IDirect3DDevice9Impl_QueryInterface(LPDIRECT3DDEVICE9 iface, REFI
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DDevice9
))
{
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/d3d9/directx.c
View file @
34e2e2bd
...
...
@@ -33,10 +33,11 @@ HRESULT WINAPI IDirect3D9Impl_QueryInterface(LPDIRECT3D9 iface, REFIID riid, LPV
||
IsEqualGUID
(
riid
,
&
IID_IDirect3D9
))
{
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/d3d9/indexbuffer.c
View file @
34e2e2bd
...
...
@@ -33,10 +33,11 @@ HRESULT WINAPI IDirect3DIndexBuffer9Impl_QueryInterface(LPDIRECT3DINDEXBUFFER9 i
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DIndexBuffer9
))
{
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/d3d9/pixelshader.c
View file @
34e2e2bd
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DPixelShader9Impl_QueryInterface(LPDIRECT3DPIXELSHADER9 i
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DPixelShader9
))
{
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/d3d9/query.c
View file @
34e2e2bd
...
...
@@ -34,10 +34,11 @@ HRESULT WINAPI IDirect3DQuery9Impl_QueryInterface(LPDIRECT3DQUERY9 iface, REFIID
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DQuery9
))
{
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/d3d9/resource.c
View file @
34e2e2bd
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DResource9Impl_QueryInterface(LPDIRECT3DRESOURCE9 iface,
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource9
))
{
IDirect3DResource9Impl_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/d3d9/stateblock.c
View file @
34e2e2bd
...
...
@@ -33,10 +33,11 @@ HRESULT WINAPI IDirect3DStateBlock9Impl_QueryInterface(LPDIRECT3DSTATEBLOCK9 ifa
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DStateBlock9
))
{
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/d3d9/surface.c
View file @
34e2e2bd
...
...
@@ -33,10 +33,11 @@ HRESULT WINAPI IDirect3DSurface9Impl_QueryInterface(LPDIRECT3DSURFACE9 iface, RE
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DSurface9
))
{
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/d3d9/swapchain.c
View file @
34e2e2bd
...
...
@@ -34,10 +34,11 @@ HRESULT WINAPI IDirect3DSwapChain9Impl_QueryInterface(LPDIRECT3DSWAPCHAIN9 iface
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DSwapChain9
))
{
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/d3d9/texture.c
View file @
34e2e2bd
...
...
@@ -35,10 +35,11 @@ HRESULT WINAPI IDirect3DTexture9Impl_QueryInterface(LPDIRECT3DTEXTURE9 iface, RE
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DTexture9
))
{
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/d3d9/vertexbuffer.c
View file @
34e2e2bd
...
...
@@ -34,10 +34,11 @@ HRESULT WINAPI IDirect3DVertexBuffer9Impl_QueryInterface(LPDIRECT3DVERTEXBUFFER9
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVertexBuffer9
))
{
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/d3d9/vertexdeclaration.c
View file @
34e2e2bd
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DVertexDeclaration9Impl_QueryInterface(LPDIRECT3DVERTEXDE
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVertexDeclaration9
))
{
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/d3d9/vertexshader.c
View file @
34e2e2bd
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DVertexShader9Impl_QueryInterface(LPDIRECT3DVERTEXSHADER9
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVertexShader9
))
{
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/d3d9/volume.c
View file @
34e2e2bd
...
...
@@ -32,10 +32,11 @@ HRESULT WINAPI IDirect3DVolume9Impl_QueryInterface(LPDIRECT3DVOLUME9 iface, REFI
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVolume9
))
{
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/d3d9/volumetexture.c
View file @
34e2e2bd
...
...
@@ -34,10 +34,11 @@ HRESULT WINAPI IDirect3DVolumeTexture9Impl_QueryInterface(LPDIRECT3DVOLUMETEXTUR
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DVolumeTexture9
))
{
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