diff --git a/dlls/d3d9/basetexture.c b/dlls/d3d9/basetexture.c index 29e6b8b33aa..910862b52a5 100644 --- a/dlls/d3d9/basetexture.c +++ b/dlls/d3d9/basetexture.c @@ -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; } diff --git a/dlls/d3d9/cubetexture.c b/dlls/d3d9/cubetexture.c index 2594147b248..21464f9d7d7 100644 --- a/dlls/d3d9/cubetexture.c +++ b/dlls/d3d9/cubetexture.c @@ -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; } diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index c6f0527655a..34973cef357 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -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; } diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c index 808af0a4222..2c2096797b1 100644 --- a/dlls/d3d9/directx.c +++ b/dlls/d3d9/directx.c @@ -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; } diff --git a/dlls/d3d9/indexbuffer.c b/dlls/d3d9/indexbuffer.c index a7802375826..a46831e5e2b 100644 --- a/dlls/d3d9/indexbuffer.c +++ b/dlls/d3d9/indexbuffer.c @@ -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; } diff --git a/dlls/d3d9/pixelshader.c b/dlls/d3d9/pixelshader.c index fce6590771a..4be4ca0f873 100644 --- a/dlls/d3d9/pixelshader.c +++ b/dlls/d3d9/pixelshader.c @@ -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; } diff --git a/dlls/d3d9/query.c b/dlls/d3d9/query.c index 0752902894a..22de219edc6 100644 --- a/dlls/d3d9/query.c +++ b/dlls/d3d9/query.c @@ -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; } diff --git a/dlls/d3d9/resource.c b/dlls/d3d9/resource.c index 3ef38d3752d..d3ac5771234 100644 --- a/dlls/d3d9/resource.c +++ b/dlls/d3d9/resource.c @@ -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; } diff --git a/dlls/d3d9/stateblock.c b/dlls/d3d9/stateblock.c index ad873357fe7..8e3aa453166 100644 --- a/dlls/d3d9/stateblock.c +++ b/dlls/d3d9/stateblock.c @@ -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; } diff --git a/dlls/d3d9/surface.c b/dlls/d3d9/surface.c index 6fb6daadd57..f04216e6a59 100644 --- a/dlls/d3d9/surface.c +++ b/dlls/d3d9/surface.c @@ -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; } diff --git a/dlls/d3d9/swapchain.c b/dlls/d3d9/swapchain.c index 95c80968b34..5bcb4802d7d 100644 --- a/dlls/d3d9/swapchain.c +++ b/dlls/d3d9/swapchain.c @@ -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; } diff --git a/dlls/d3d9/texture.c b/dlls/d3d9/texture.c index 2ec31803a0d..f7eca1dea8c 100644 --- a/dlls/d3d9/texture.c +++ b/dlls/d3d9/texture.c @@ -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; } diff --git a/dlls/d3d9/vertexbuffer.c b/dlls/d3d9/vertexbuffer.c index 3fa47dfbeb3..95670108c1c 100644 --- a/dlls/d3d9/vertexbuffer.c +++ b/dlls/d3d9/vertexbuffer.c @@ -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; } diff --git a/dlls/d3d9/vertexdeclaration.c b/dlls/d3d9/vertexdeclaration.c index f50e34b895c..c5fb32336e3 100644 --- a/dlls/d3d9/vertexdeclaration.c +++ b/dlls/d3d9/vertexdeclaration.c @@ -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; } diff --git a/dlls/d3d9/vertexshader.c b/dlls/d3d9/vertexshader.c index ed3bc4d63ff..2b74bd60116 100644 --- a/dlls/d3d9/vertexshader.c +++ b/dlls/d3d9/vertexshader.c @@ -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; } diff --git a/dlls/d3d9/volume.c b/dlls/d3d9/volume.c index bb1e4901773..3007c52bd17 100644 --- a/dlls/d3d9/volume.c +++ b/dlls/d3d9/volume.c @@ -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; } diff --git a/dlls/d3d9/volumetexture.c b/dlls/d3d9/volumetexture.c index 5b4d2f84cfb..fe3a1f0da65 100644 --- a/dlls/d3d9/volumetexture.c +++ b/dlls/d3d9/volumetexture.c @@ -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; }