diff --git a/dlls/d3d9/basetexture.c b/dlls/d3d9/basetexture.c index f80eb78ae74..b349f512850 100644 --- a/dlls/d3d9/basetexture.c +++ b/dlls/d3d9/basetexture.c @@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3DBaseTexture9Impl_QueryInterface(LPDIRECT3DBASETEX if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DResource9) || IsEqualGUID(riid, &IID_IDirect3DBaseTexture9)) { - IUnknown_AddRef(iface); + IDirect3DBaseTexture9_AddRef(iface); *ppobj = This; return S_OK; } diff --git a/dlls/d3d9/cubetexture.c b/dlls/d3d9/cubetexture.c index 9369fa5a7bb..bf889954424 100644 --- a/dlls/d3d9/cubetexture.c +++ b/dlls/d3d9/cubetexture.c @@ -33,7 +33,7 @@ static HRESULT WINAPI IDirect3DCubeTexture9Impl_QueryInterface(LPDIRECT3DCUBETEX || IsEqualGUID(riid, &IID_IDirect3DResource9) || IsEqualGUID(riid, &IID_IDirect3DBaseTexture9) || IsEqualGUID(riid, &IID_IDirect3DCubeTexture9)) { - IUnknown_AddRef(iface); + IDirect3DCubeTexture9_AddRef(iface); *ppobj = This; return S_OK; } @@ -63,7 +63,7 @@ static ULONG WINAPI IDirect3DCubeTexture9Impl_Release(LPDIRECT3DCUBETEXTURE9 ifa EnterCriticalSection(&d3d9_cs); IWineD3DCubeTexture_Destroy(This->wineD3DCubeTexture, D3D9CB_DestroySurface); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); LeaveCriticalSection(&d3d9_cs); HeapFree(GetProcessHeap(), 0, This); @@ -365,7 +365,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateCubeTexture(LPDIRECT3DDEVICE9EX ifac FIXME("(%p) call to IWineD3DDevice_CreateCubeTexture failed\n", This); HeapFree(GetProcessHeap(), 0, object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppCubeTexture = (LPDIRECT3DCUBETEXTURE9) object; TRACE("(%p) : Created cube texture %p\n", This, object); diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index 426c8ab3872..5323eac6db3 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -34,7 +34,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_QueryInterface(LPDIRECT3DDEVICE9EX if if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DDevice9)) { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); *ppobj = This; TRACE("Returning IDirect3DDevice9 interface at %p\n", *ppobj); return S_OK; @@ -514,7 +514,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateSurface(LPDIRECT3DDEVICE9EX if FIXME("(%p) call to IWineD3DDevice_CreateSurface failed\n", This); HeapFree(GetProcessHeap(), 0, object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; TRACE("(%p) : Created surface %p\n", This, object); *ppSurface = (LPDIRECT3DSURFACE9) object; @@ -1721,7 +1721,7 @@ HRESULT WINAPI D3D9CB_CreateSurface(IUnknown *device, IUnknown *pSuperior, UINT if (SUCCEEDED(res)) { *ppSurface = d3dSurface->wineD3DSurface; d3dSurface->container = pSuperior; - IUnknown_Release(d3dSurface->parentDevice); + IDirect3DDevice9Ex_Release(d3dSurface->parentDevice); d3dSurface->parentDevice = NULL; d3dSurface->forwardReference = pSuperior; } else { diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c index b44c6324ec3..cb04b1fb144 100644 --- a/dlls/d3d9/directx.c +++ b/dlls/d3d9/directx.c @@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3D9Impl_QueryInterface(LPDIRECT3D9EX iface, REFIID if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3D9)) { - IUnknown_AddRef(iface); + IDirect3D9Ex_AddRef(iface); *ppobj = This; TRACE("Returning IDirect3D9 interface at %p\n", *ppobj); return S_OK; @@ -346,7 +346,7 @@ HRESULT WINAPI D3D9CB_CreateRenderTarget(IUnknown *device, IUnknown *pSuperior, d3dSurface->container = pSuperior; d3dSurface->isImplicit = TRUE; /* Implicit surfaces are created with an refcount of 0 */ - IUnknown_Release((IUnknown *)d3dSurface); + IDirect3DSurface9_Release((IDirect3DSurface9 *)d3dSurface); } else { *ppSurface = NULL; } @@ -393,7 +393,7 @@ static HRESULT WINAPI D3D9CB_CreateAdditionalSwapChain(IUnknown *device, *ppSwapChain = d3dSwapChain->wineD3DSwapChain; d3dSwapChain->isImplicit = TRUE; /* Implicit swap chains are created with an refcount of 0 */ - IUnknown_Release((IUnknown *)d3dSwapChain); + IDirect3DSwapChain9_Release((IDirect3DSwapChain9 *)d3dSwapChain); } else { *ppSwapChain = NULL; } @@ -444,7 +444,7 @@ HRESULT WINAPI D3D9CB_CreateDepthStencilSurface(IUnknown *device, IUnknown *pSup d3dSurface->container = device; d3dSurface->isImplicit = TRUE; /* Implicit surfaces are created with an refcount of 0 */ - IUnknown_Release((IUnknown *)d3dSurface); + IDirect3DSurface9_Release((IDirect3DSurface9 *)d3dSurface); } return res; } diff --git a/dlls/d3d9/indexbuffer.c b/dlls/d3d9/indexbuffer.c index 1193c6ae1cb..c1860ffbcd5 100644 --- a/dlls/d3d9/indexbuffer.c +++ b/dlls/d3d9/indexbuffer.c @@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3DIndexBuffer9Impl_QueryInterface(LPDIRECT3DINDEXBU if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DResource9) || IsEqualGUID(riid, &IID_IDirect3DIndexBuffer9)) { - IUnknown_AddRef(iface); + IDirect3DIndexBuffer9_AddRef(iface); *ppobj = This; return S_OK; } @@ -60,7 +60,7 @@ static ULONG WINAPI IDirect3DIndexBuffer9Impl_Release(LPDIRECT3DINDEXBUFFER9 ifa EnterCriticalSection(&d3d9_cs); IWineD3DIndexBuffer_Release(This->wineD3DIndexBuffer); LeaveCriticalSection(&d3d9_cs); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -237,7 +237,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateIndexBuffer(LPDIRECT3DDEVICE9EX iface, FIXME("(%p) call to IWineD3DDevice_CreateIndexBuffer failed\n", This); HeapFree(GetProcessHeap(), 0, object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppIndexBuffer = (LPDIRECT3DINDEXBUFFER9) object; TRACE("(%p) : Created index buffer %p\n", This, object); diff --git a/dlls/d3d9/pixelshader.c b/dlls/d3d9/pixelshader.c index 919b5a7c8e8..059116aa808 100644 --- a/dlls/d3d9/pixelshader.c +++ b/dlls/d3d9/pixelshader.c @@ -30,7 +30,7 @@ static HRESULT WINAPI IDirect3DPixelShader9Impl_QueryInterface(LPDIRECT3DPIXELSH if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DPixelShader9)) { - IUnknown_AddRef(iface); + IDirect3DPixelShader9_AddRef(iface); *ppobj = This; return S_OK; } @@ -59,7 +59,7 @@ static ULONG WINAPI IDirect3DPixelShader9Impl_Release(LPDIRECT3DPIXELSHADER9 ifa EnterCriticalSection(&d3d9_cs); IWineD3DPixelShader_Release(This->wineD3DPixelShader); LeaveCriticalSection(&d3d9_cs); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -136,7 +136,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreatePixelShader(LPDIRECT3DDEVICE9EX iface, FIXME("(%p) call to IWineD3DDevice_CreatePixelShader failed\n", This); HeapFree(GetProcessHeap(), 0 , object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppShader = (IDirect3DPixelShader9*) object; TRACE("(%p) : Created pixel shader %p\n", This, object); diff --git a/dlls/d3d9/query.c b/dlls/d3d9/query.c index 9eeabc80ca1..9a15164af17 100644 --- a/dlls/d3d9/query.c +++ b/dlls/d3d9/query.c @@ -32,7 +32,7 @@ static HRESULT WINAPI IDirect3DQuery9Impl_QueryInterface(LPDIRECT3DQUERY9 iface, if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DQuery9)) { - IUnknown_AddRef(iface); + IDirect3DQuery9_AddRef(iface); *ppobj = This; return S_OK; } @@ -60,7 +60,7 @@ static ULONG WINAPI IDirect3DQuery9Impl_Release(LPDIRECT3DQUERY9 iface) { EnterCriticalSection(&d3d9_cs); IWineD3DQuery_Release(This->wineD3DQuery); LeaveCriticalSection(&d3d9_cs); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -179,7 +179,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateQuery(LPDIRECT3DDEVICE9EX iface, D3DQU FIXME("(%p) call to IWineD3DDevice_CreateQuery failed\n", This); HeapFree(GetProcessHeap(), 0, object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppQuery = (LPDIRECT3DQUERY9) object; TRACE("(%p) : Created query %p\n", This , object); diff --git a/dlls/d3d9/resource.c b/dlls/d3d9/resource.c index d07d1da3921..fac25706de9 100644 --- a/dlls/d3d9/resource.c +++ b/dlls/d3d9/resource.c @@ -30,7 +30,7 @@ static HRESULT WINAPI IDirect3DResource9Impl_QueryInterface(LPDIRECT3DRESOURCE9 if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DResource9)) { - IUnknown_AddRef(iface); + IDirect3DResource9_AddRef(iface); *ppobj = This; return S_OK; } diff --git a/dlls/d3d9/stateblock.c b/dlls/d3d9/stateblock.c index 89e992c2698..22e1926026e 100644 --- a/dlls/d3d9/stateblock.c +++ b/dlls/d3d9/stateblock.c @@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3DStateBlock9Impl_QueryInterface(LPDIRECT3DSTATEBLO if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DStateBlock9)) { - IUnknown_AddRef(iface); + IDirect3DStateBlock9_AddRef(iface); *ppobj = This; return S_OK; } @@ -58,9 +58,9 @@ static ULONG WINAPI IDirect3DStateBlock9Impl_Release(LPDIRECT3DSTATEBLOCK9 iface if (ref == 0) { EnterCriticalSection(&d3d9_cs); - IWineD3DStateBlock_Release(This->wineD3DStateBlock); + IWineD3DStateBlock_Release(This->wineD3DStateBlock); LeaveCriticalSection(&d3d9_cs); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -140,7 +140,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateStateBlock(LPDIRECT3DDEVICE9EX iface, FIXME("(%p) Call to IWineD3DDevice_CreateStateBlock failed.\n", This); HeapFree(GetProcessHeap(), 0, object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppStateBlock = (IDirect3DStateBlock9*)object; TRACE("(%p) : Created stateblock %p\n", This, object); @@ -185,7 +185,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_EndStateBlock(LPDIRECT3DDEVICE9EX iface, I object->lpVtbl = &Direct3DStateBlock9_Vtbl; object->wineD3DStateBlock = wineD3DStateBlock; - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppSB=(IDirect3DStateBlock9*)object; TRACE("(%p)Returning %p %p\n", This, *ppSB, wineD3DStateBlock); diff --git a/dlls/d3d9/surface.c b/dlls/d3d9/surface.c index 54558b49a89..bdede777c9b 100644 --- a/dlls/d3d9/surface.c +++ b/dlls/d3d9/surface.c @@ -31,7 +31,7 @@ static HRESULT WINAPI IDirect3DSurface9Impl_QueryInterface(LPDIRECT3DSURFACE9 if if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DResource9) || IsEqualGUID(riid, &IID_IDirect3DSurface9)) { - IUnknown_AddRef(iface); + IDirect3DSurface9_AddRef(iface); *ppobj = This; return S_OK; } @@ -53,7 +53,7 @@ static ULONG WINAPI IDirect3DSurface9Impl_AddRef(LPDIRECT3DSURFACE9 iface) { } else { /* No container, handle our own refcounting */ ULONG ref = InterlockedIncrement(&This->ref); - if(ref == 1 && This->parentDevice) IUnknown_AddRef(This->parentDevice); + if(ref == 1 && This->parentDevice) IDirect3DDevice9Ex_AddRef(This->parentDevice); TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; @@ -76,7 +76,7 @@ static ULONG WINAPI IDirect3DSurface9Impl_Release(LPDIRECT3DSURFACE9 iface) { TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { - if (This->parentDevice) IUnknown_Release(This->parentDevice); + if (This->parentDevice) IDirect3DDevice9Ex_Release(This->parentDevice); if (!This->isImplicit) { EnterCriticalSection(&d3d9_cs); IWineD3DSurface_Release(This->wineD3DSurface); diff --git a/dlls/d3d9/swapchain.c b/dlls/d3d9/swapchain.c index 6d12a00d834..eabe366aa07 100644 --- a/dlls/d3d9/swapchain.c +++ b/dlls/d3d9/swapchain.c @@ -32,7 +32,7 @@ static HRESULT WINAPI IDirect3DSwapChain9Impl_QueryInterface(LPDIRECT3DSWAPCHAIN if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DSwapChain9)) { - IUnknown_AddRef(iface); + IDirect3DSwapChain9_AddRef(iface); *ppobj = This; return S_OK; } @@ -48,7 +48,7 @@ static ULONG WINAPI IDirect3DSwapChain9Impl_AddRef(LPDIRECT3DSWAPCHAIN9 iface) { TRACE("(%p) : AddRef from %d\n", This, ref - 1); - if(ref == 1 && This->parentDevice) IUnknown_AddRef(This->parentDevice); + if(ref == 1 && This->parentDevice) IDirect3DDevice9Ex_AddRef(This->parentDevice); return ref; } @@ -60,7 +60,7 @@ static ULONG WINAPI IDirect3DSwapChain9Impl_Release(LPDIRECT3DSWAPCHAIN9 iface) TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { - if (This->parentDevice) IUnknown_Release(This->parentDevice); + if (This->parentDevice) IDirect3DDevice9Ex_Release(This->parentDevice); if (!This->isImplicit) { EnterCriticalSection(&d3d9_cs); IWineD3DSwapChain_Destroy(This->wineD3DSwapChain, D3D9CB_DestroyRenderTarget); @@ -251,7 +251,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateAdditionalSwapChain(LPDIRECT3DDEVICE FIXME("(%p) call to IWineD3DDevice_CreateSwapChain failed\n", This); HeapFree(GetProcessHeap(), 0 , object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *pSwapChain = (IDirect3DSwapChain9 *)object; TRACE("(%p) : Created swapchain %p\n", This, *pSwapChain); diff --git a/dlls/d3d9/texture.c b/dlls/d3d9/texture.c index a8a525a7711..71e1be3ebad 100644 --- a/dlls/d3d9/texture.c +++ b/dlls/d3d9/texture.c @@ -33,7 +33,7 @@ static HRESULT WINAPI IDirect3DTexture9Impl_QueryInterface(LPDIRECT3DTEXTURE9 if || IsEqualGUID(riid, &IID_IDirect3DResource9) || IsEqualGUID(riid, &IID_IDirect3DBaseTexture9) || IsEqualGUID(riid, &IID_IDirect3DTexture9)) { - IUnknown_AddRef(iface); + IDirect3DTexture9_AddRef(iface); *ppobj = This; return S_OK; } @@ -62,7 +62,7 @@ static ULONG WINAPI IDirect3DTexture9Impl_Release(LPDIRECT3DTEXTURE9 iface) { EnterCriticalSection(&d3d9_cs); IWineD3DTexture_Destroy(This->wineD3DTexture, D3D9CB_DestroySurface); LeaveCriticalSection(&d3d9_cs); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -356,7 +356,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateTexture(LPDIRECT3DDEVICE9EX iface, U FIXME("(%p) call to IWineD3DDevice_CreateTexture failed\n", This); HeapFree(GetProcessHeap(), 0, object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppTexture= (LPDIRECT3DTEXTURE9) object; TRACE("(%p) Created Texture %p, %p\n", This, object, object->wineD3DTexture); diff --git a/dlls/d3d9/vertexbuffer.c b/dlls/d3d9/vertexbuffer.c index 12ecd0baeea..002052e69e4 100644 --- a/dlls/d3d9/vertexbuffer.c +++ b/dlls/d3d9/vertexbuffer.c @@ -32,7 +32,7 @@ static HRESULT WINAPI IDirect3DVertexBuffer9Impl_QueryInterface(LPDIRECT3DVERTEX if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DResource9) || IsEqualGUID(riid, &IID_IDirect3DVertexBuffer9)) { - IUnknown_AddRef(iface); + IDirect3DVertexBuffer9_AddRef(iface); *ppobj = This; return S_OK; } @@ -61,7 +61,7 @@ static ULONG WINAPI IDirect3DVertexBuffer9Impl_Release(LPDIRECT3DVERTEXBUFFER9 i EnterCriticalSection(&d3d9_cs); IWineD3DVertexBuffer_Release(This->wineD3DVertexBuffer); LeaveCriticalSection(&d3d9_cs); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -234,7 +234,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexBuffer(LPDIRECT3DDEVICE9EX iface WARN("(%p) call to IWineD3DDevice_CreateVertexBuffer failed\n", This); HeapFree(GetProcessHeap(), 0, object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; TRACE("(%p) : Created vertex buffer %p\n", This, object); *ppVertexBuffer = (LPDIRECT3DVERTEXBUFFER9) object; diff --git a/dlls/d3d9/vertexdeclaration.c b/dlls/d3d9/vertexdeclaration.c index 327c7417e8e..42b46ce1610 100644 --- a/dlls/d3d9/vertexdeclaration.c +++ b/dlls/d3d9/vertexdeclaration.c @@ -187,7 +187,7 @@ static HRESULT WINAPI IDirect3DVertexDeclaration9Impl_QueryInterface(LPDIRECT3DV if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DVertexDeclaration9)) { - IUnknown_AddRef(iface); + IDirect3DVertexDeclaration9_AddRef(iface); *ppobj = This; return S_OK; } @@ -204,7 +204,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_AddRef(LPDIRECT3DVERTEXDECLA TRACE("(%p) : AddRef from %d\n", This, ref - 1); if(ref == 1) { - IUnknown_AddRef(This->parentDevice); + IDirect3DDevice9Ex_AddRef(This->parentDevice); } return ref; @@ -236,7 +236,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_Release(LPDIRECT3DVERTEXDECL if(!This->convFVF) { IDirect3DVertexDeclaration9Impl_Release(iface); } - IUnknown_Release(parentDevice); + IDirect3DDevice9Ex_Release(parentDevice); } return ref; } @@ -374,7 +374,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9E } else { object->parentDevice = iface; *ppDecl = (LPDIRECT3DVERTEXDECLARATION9) object; - IUnknown_AddRef(*ppDecl); + IDirect3DVertexDeclaration9_AddRef(*ppDecl); TRACE("(%p) : Created vertex declaration %p\n", This, object); } return hr; diff --git a/dlls/d3d9/vertexshader.c b/dlls/d3d9/vertexshader.c index abe283ddf56..66ce2862f92 100644 --- a/dlls/d3d9/vertexshader.c +++ b/dlls/d3d9/vertexshader.c @@ -30,7 +30,7 @@ static HRESULT WINAPI IDirect3DVertexShader9Impl_QueryInterface(LPDIRECT3DVERTEX if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DVertexShader9)) { - IUnknown_AddRef(iface); + IDirect3DVertexShader9_AddRef(iface); *ppobj = This; return S_OK; } @@ -59,7 +59,7 @@ static ULONG WINAPI IDirect3DVertexShader9Impl_Release(LPDIRECT3DVERTEXSHADER9 i EnterCriticalSection(&d3d9_cs); IWineD3DVertexShader_Release(This->wineD3DVertexShader); LeaveCriticalSection(&d3d9_cs); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -135,7 +135,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexShader(LPDIRECT3DDEVICE9EX iface FIXME("Call to IWineD3DDevice_CreateVertexShader failed\n"); HeapFree(GetProcessHeap(), 0, object); }else{ - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppShader = (IDirect3DVertexShader9 *)object; TRACE("(%p) : Created vertex shader %p\n", This, object); diff --git a/dlls/d3d9/volume.c b/dlls/d3d9/volume.c index 2af611d9719..80146f9b980 100644 --- a/dlls/d3d9/volume.c +++ b/dlls/d3d9/volume.c @@ -30,7 +30,7 @@ static HRESULT WINAPI IDirect3DVolume9Impl_QueryInterface(LPDIRECT3DVOLUME9 ifac if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirect3DVolume9)) { - IUnknown_AddRef(iface); + IDirect3DVolume9_AddRef(iface); *ppobj = This; return S_OK; } diff --git a/dlls/d3d9/volumetexture.c b/dlls/d3d9/volumetexture.c index 28a7460fb7d..3069771f7fd 100644 --- a/dlls/d3d9/volumetexture.c +++ b/dlls/d3d9/volumetexture.c @@ -32,7 +32,7 @@ static HRESULT WINAPI IDirect3DVolumeTexture9Impl_QueryInterface(LPDIRECT3DVOLUM || IsEqualGUID(riid, &IID_IDirect3DResource9) || IsEqualGUID(riid, &IID_IDirect3DBaseTexture9) || IsEqualGUID(riid, &IID_IDirect3DVolumeTexture9)) { - IUnknown_AddRef(iface); + IDirect3DVolumeTexture9_AddRef(iface); *ppobj = This; return S_OK; } @@ -59,7 +59,7 @@ static ULONG WINAPI IDirect3DVolumeTexture9Impl_Release(LPDIRECT3DVOLUMETEXTURE9 if (ref == 0) { IWineD3DVolumeTexture_Destroy(This->wineD3DVolumeTexture, D3D9CB_DestroyVolume); - IUnknown_Release(This->parentDevice); + IDirect3DDevice9Ex_Release(This->parentDevice); HeapFree(GetProcessHeap(), 0, This); } return ref; @@ -269,7 +269,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVolumeTexture(LPDIRECT3DDEVICE9EX if FIXME("(%p) call to IWineD3DDevice_CreateVolumeTexture failed\n", This); HeapFree(GetProcessHeap(), 0, object); } else { - IUnknown_AddRef(iface); + IDirect3DDevice9Ex_AddRef(iface); object->parentDevice = iface; *ppVolumeTexture = (LPDIRECT3DVOLUMETEXTURE9) object; TRACE("(%p) : Created volume texture %p\n", This, object);