diff --git a/dlls/d3d8/basetexture.c b/dlls/d3d8/basetexture.c index 804e83a5b68..f7e4748a6fc 100644 --- a/dlls/d3d8/basetexture.c +++ b/dlls/d3d8/basetexture.c @@ -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; } diff --git a/dlls/d3d8/cubetexture.c b/dlls/d3d8/cubetexture.c index 5ad0f7cfad2..763b28c4e72 100644 --- a/dlls/d3d8/cubetexture.c +++ b/dlls/d3d8/cubetexture.c @@ -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; } diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index 6ebe6785700..91872ef7825 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -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; } diff --git a/dlls/d3d8/directx.c b/dlls/d3d8/directx.c index 47611bfb244..4ba8a2fcefe 100644 --- a/dlls/d3d8/directx.c +++ b/dlls/d3d8/directx.c @@ -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; } diff --git a/dlls/d3d8/indexbuffer.c b/dlls/d3d8/indexbuffer.c index a83e72adfd9..1df5d880505 100644 --- a/dlls/d3d8/indexbuffer.c +++ b/dlls/d3d8/indexbuffer.c @@ -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; } diff --git a/dlls/d3d8/pixelshader.c b/dlls/d3d8/pixelshader.c index 968eda17258..9ebb9dddd95 100644 --- a/dlls/d3d8/pixelshader.c +++ b/dlls/d3d8/pixelshader.c @@ -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; } diff --git a/dlls/d3d8/resource.c b/dlls/d3d8/resource.c index 3e395fbfc13..5bde093d5dc 100644 --- a/dlls/d3d8/resource.c +++ b/dlls/d3d8/resource.c @@ -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; } diff --git a/dlls/d3d8/stateblock.c b/dlls/d3d8/stateblock.c index b1634d5f93e..320810b0d5b 100644 --- a/dlls/d3d8/stateblock.c +++ b/dlls/d3d8/stateblock.c @@ -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; } diff --git a/dlls/d3d8/surface.c b/dlls/d3d8/surface.c index 4c589d7ce8e..8fe7eea4c6c 100644 --- a/dlls/d3d8/surface.c +++ b/dlls/d3d8/surface.c @@ -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; } diff --git a/dlls/d3d8/swapchain.c b/dlls/d3d8/swapchain.c index dcba1111189..6c9913fed74 100644 --- a/dlls/d3d8/swapchain.c +++ b/dlls/d3d8/swapchain.c @@ -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; } diff --git a/dlls/d3d8/texture.c b/dlls/d3d8/texture.c index be521921647..d01867ff169 100644 --- a/dlls/d3d8/texture.c +++ b/dlls/d3d8/texture.c @@ -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; } diff --git a/dlls/d3d8/vertexbuffer.c b/dlls/d3d8/vertexbuffer.c index 36691bc6355..402514bc49b 100644 --- a/dlls/d3d8/vertexbuffer.c +++ b/dlls/d3d8/vertexbuffer.c @@ -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; } diff --git a/dlls/d3d8/vertexshader.c b/dlls/d3d8/vertexshader.c index bf88998c27c..b1fb6a1a722 100644 --- a/dlls/d3d8/vertexshader.c +++ b/dlls/d3d8/vertexshader.c @@ -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; } diff --git a/dlls/d3d8/volume.c b/dlls/d3d8/volume.c index b96e8021e34..f6e6473dbb6 100644 --- a/dlls/d3d8/volume.c +++ b/dlls/d3d8/volume.c @@ -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; } diff --git a/dlls/d3d8/volumetexture.c b/dlls/d3d8/volumetexture.c index c68bfa339d6..04297f47f48 100644 --- a/dlls/d3d8/volumetexture.c +++ b/dlls/d3d8/volumetexture.c @@ -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; }