From cb4ad6e52cfe5f293f5b97f7c3c1e131317d44fb Mon Sep 17 00:00:00 2001 From: "H. Verbeet" Date: Tue, 10 Oct 2006 19:23:22 +0200 Subject: [PATCH] d3d9: Win64 printf format warning fixes. --- dlls/d3d9/Makefile.in | 1 - dlls/d3d9/basetexture.c | 4 ++-- dlls/d3d9/cubetexture.c | 6 +++--- dlls/d3d9/d3d9_main.c | 10 +++++----- dlls/d3d9/device.c | 12 ++++++------ dlls/d3d9/directx.c | 4 ++-- dlls/d3d9/indexbuffer.c | 4 ++-- dlls/d3d9/pixelshader.c | 4 ++-- dlls/d3d9/query.c | 6 +++--- dlls/d3d9/resource.c | 4 ++-- dlls/d3d9/stateblock.c | 4 ++-- dlls/d3d9/surface.c | 6 +++--- dlls/d3d9/swapchain.c | 4 ++-- dlls/d3d9/texture.c | 6 +++--- dlls/d3d9/vertexbuffer.c | 4 ++-- dlls/d3d9/vertexdeclaration.c | 4 ++-- dlls/d3d9/vertexshader.c | 8 ++++---- dlls/d3d9/volume.c | 6 +++--- dlls/d3d9/volumetexture.c | 6 +++--- 19 files changed, 51 insertions(+), 52 deletions(-) diff --git a/dlls/d3d9/Makefile.in b/dlls/d3d9/Makefile.in index 731ab37b6e..904dda9923 100644 --- a/dlls/d3d9/Makefile.in +++ b/dlls/d3d9/Makefile.in @@ -6,7 +6,6 @@ MODULE = d3d9.dll IMPORTLIB = libd3d9.$(IMPLIBEXT) IMPORTS = wined3d user32 gdi32 kernel32 EXTRALIBS = -ldxguid -luuid -EXTRADEFS = -DWINE_NO_LONG_AS_INT C_SRCS = \ basetexture.c \ diff --git a/dlls/d3d9/basetexture.c b/dlls/d3d9/basetexture.c index 7940ea4760..1dff7561f7 100644 --- a/dlls/d3d9/basetexture.c +++ b/dlls/d3d9/basetexture.c @@ -45,7 +45,7 @@ static ULONG WINAPI IDirect3DBaseTexture9Impl_AddRef(LPDIRECT3DBASETEXTURE9 ifac IDirect3DBaseTexture9Impl *This = (IDirect3DBaseTexture9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -54,7 +54,7 @@ static ULONG WINAPI IDirect3DBaseTexture9Impl_Release(LPDIRECT3DBASETEXTURE9 ifa IDirect3DBaseTexture9Impl *This = (IDirect3DBaseTexture9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DBaseTexture_Release(This->wineD3DBaseTexture); diff --git a/dlls/d3d9/cubetexture.c b/dlls/d3d9/cubetexture.c index 7cc0f344b4..e140b2e103 100644 --- a/dlls/d3d9/cubetexture.c +++ b/dlls/d3d9/cubetexture.c @@ -47,7 +47,7 @@ static ULONG WINAPI IDirect3DCubeTexture9Impl_AddRef(LPDIRECT3DCUBETEXTURE9 ifac IDirect3DCubeTexture9Impl *This = (IDirect3DCubeTexture9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -56,7 +56,7 @@ static ULONG WINAPI IDirect3DCubeTexture9Impl_Release(LPDIRECT3DCUBETEXTURE9 ifa IDirect3DCubeTexture9Impl *This = (IDirect3DCubeTexture9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { TRACE("Releasing child %p\n", This->wineD3DCubeTexture); @@ -251,7 +251,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateCubeTexture(LPDIRECT3DDEVICE9 iface, IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; HRESULT hr = D3D_OK; - TRACE("(%p) : ELen(%d) Lvl(%d) Usage(%ld) fmt(%u), Pool(%d) Shared(%p)\n", This, EdgeLength, Levels, Usage, Format, Pool, pSharedHandle); + TRACE("(%p) : ELen(%d) Lvl(%d) Usage(%d) fmt(%u), Pool(%d) Shared(%p)\n", This, EdgeLength, Levels, Usage, Format, Pool, pSharedHandle); /* Allocate the storage for the device */ object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object)); diff --git a/dlls/d3d9/d3d9_main.c b/dlls/d3d9/d3d9_main.c index a81fb01c20..a5e1cef0dc 100644 --- a/dlls/d3d9/d3d9_main.c +++ b/dlls/d3d9/d3d9_main.c @@ -53,7 +53,7 @@ IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion) { /* At process attach */ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) { - TRACE("fdwReason=%ld\n", fdwReason); + TRACE("fdwReason=%d\n", fdwReason); if (fdwReason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls(hInstDLL); @@ -64,7 +64,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) * D3DPERF_BeginEvent (D3D9.@) */ int WINAPI D3DPERF_BeginEvent(D3DCOLOR color, LPCWSTR name) { - FIXME("(color %#lx, name %s) : stub\n", color, debugstr_w(name)); + FIXME("(color %#x, name %s) : stub\n", color, debugstr_w(name)); return D3DPERF_event_level++; } @@ -93,7 +93,7 @@ DWORD WINAPI D3DPERF_GetStatus(void) { */ void WINAPI D3DPERF_SetOptions(DWORD options) { - FIXME("(%#lx) : stub\n", options); + FIXME("(%#x) : stub\n", options); } /*********************************************************************** @@ -109,12 +109,12 @@ BOOL WINAPI D3DPERF_QueryRepeatFrame(void) { * D3DPERF_SetMarker (D3D9.@) */ void WINAPI D3DPERF_SetMarker(D3DCOLOR color, LPCWSTR name) { - FIXME("(color %#lx, name %s) : stub\n", color, debugstr_w(name)); + FIXME("(color %#x, name %s) : stub\n", color, debugstr_w(name)); } /*********************************************************************** * D3DPERF_SetRegion (D3D9.@) */ void WINAPI D3DPERF_SetRegion(D3DCOLOR color, LPCWSTR name) { - FIXME("(color %#lx, name %s) : stub\n", color, debugstr_w(name)); + FIXME("(color %#x, name %s) : stub\n", color, debugstr_w(name)); } diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index e8033ed532..4ccdabb311 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -46,7 +46,7 @@ static ULONG WINAPI IDirect3DDevice9Impl_AddRef(LPDIRECT3DDEVICE9 iface) { IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -55,7 +55,7 @@ static ULONG WINAPI IDirect3DDevice9Impl_Release(LPDIRECT3DDEVICE9 iface) { IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DDevice_Uninit3D(This->WineD3DDevice); @@ -246,13 +246,13 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateSurface(LPDIRECT3DDEVICE9 ifac IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; TRACE("(%p) Relay\n", This); if(MultisampleQuality < 0) { - FIXME("MultisampleQuality out of range %ld, substituting 0\n", MultisampleQuality); + FIXME("MultisampleQuality out of range %d, substituting 0\n", MultisampleQuality); /*FIXME: Find out what windows does with a MultisampleQuality < 0 */ MultisampleQuality=0; } if(MultisampleQuality > 0){ - FIXME("MultisampleQuality set to %ld, bstituting 0\n", MultisampleQuality); + FIXME("MultisampleQuality set to %d, bstituting 0\n", MultisampleQuality); /* MultisampleQuality [in] Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by IDirect3D9::CheckDeviceMultiSampleType. Passing a larger value returns the error D3DERR_INVALIDCALL. The MultisampleQuality values of paired render targets, depth stencil surfaces, and the MultiSample type must all match. @@ -577,7 +577,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetTexture(LPDIRECT3DDEVICE9 iface, IWineD3DBaseTexture_GetParent(retTexture, (IUnknown **)ppTexture); IWineD3DBaseTexture_Release(retTexture); }else{ - FIXME("Call to get texture (%ld) failed (%p)\n", Stage, retTexture); + FIXME("Call to get texture (%d) failed (%p)\n", Stage, retTexture); *ppTexture = NULL; } return rc; @@ -585,7 +585,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetTexture(LPDIRECT3DDEVICE9 iface, static HRESULT WINAPI IDirect3DDevice9Impl_SetTexture(LPDIRECT3DDEVICE9 iface, DWORD Stage, IDirect3DBaseTexture9* pTexture) { IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; - TRACE("(%p) Relay %ld %p\n" , This, Stage, pTexture); + TRACE("(%p) Relay %d %p\n" , This, Stage, pTexture); return IWineD3DDevice_SetTexture(This->WineD3DDevice, Stage, pTexture==NULL ? NULL:((IDirect3DBaseTexture9Impl *)pTexture)->wineD3DBaseTexture); } diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c index a61526ee5c..fe9568af83 100644 --- a/dlls/d3d9/directx.c +++ b/dlls/d3d9/directx.c @@ -45,7 +45,7 @@ static ULONG WINAPI IDirect3D9Impl_AddRef(LPDIRECT3D9 iface) { IDirect3D9Impl *This = (IDirect3D9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -54,7 +54,7 @@ static ULONG WINAPI IDirect3D9Impl_Release(LPDIRECT3D9 iface) { IDirect3D9Impl *This = (IDirect3D9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3D_Release(This->WineD3D); diff --git a/dlls/d3d9/indexbuffer.c b/dlls/d3d9/indexbuffer.c index 269552aa7e..c15df38c8d 100644 --- a/dlls/d3d9/indexbuffer.c +++ b/dlls/d3d9/indexbuffer.c @@ -45,7 +45,7 @@ static ULONG WINAPI IDirect3DIndexBuffer9Impl_AddRef(LPDIRECT3DINDEXBUFFER9 ifac IDirect3DIndexBuffer9Impl *This = (IDirect3DIndexBuffer9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -54,7 +54,7 @@ static ULONG WINAPI IDirect3DIndexBuffer9Impl_Release(LPDIRECT3DINDEXBUFFER9 ifa IDirect3DIndexBuffer9Impl *This = (IDirect3DIndexBuffer9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DIndexBuffer_Release(This->wineD3DIndexBuffer); diff --git a/dlls/d3d9/pixelshader.c b/dlls/d3d9/pixelshader.c index 210d85b4ff..c20cb6c35d 100644 --- a/dlls/d3d9/pixelshader.c +++ b/dlls/d3d9/pixelshader.c @@ -44,7 +44,7 @@ static ULONG WINAPI IDirect3DPixelShader9Impl_AddRef(LPDIRECT3DPIXELSHADER9 ifac IDirect3DPixelShader9Impl *This = (IDirect3DPixelShader9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -53,7 +53,7 @@ static ULONG WINAPI IDirect3DPixelShader9Impl_Release(LPDIRECT3DPIXELSHADER9 ifa IDirect3DPixelShader9Impl *This = (IDirect3DPixelShader9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DPixelShader_Release(This->wineD3DPixelShader); diff --git a/dlls/d3d9/query.c b/dlls/d3d9/query.c index e8a92707fb..75ff13dbdb 100644 --- a/dlls/d3d9/query.c +++ b/dlls/d3d9/query.c @@ -46,7 +46,7 @@ static ULONG WINAPI IDirect3DQuery9Impl_AddRef(LPDIRECT3DQUERY9 iface) { IDirect3DQuery9Impl *This = (IDirect3DQuery9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -54,7 +54,7 @@ static ULONG WINAPI IDirect3DQuery9Impl_Release(LPDIRECT3DQUERY9 iface) { IDirect3DQuery9Impl *This = (IDirect3DQuery9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IUnknown_Release(This->parentDevice); @@ -152,6 +152,6 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateQuery(LPDIRECT3DDEVICE9 iface, D3DQUER *ppQuery = (LPDIRECT3DQUERY9) object; TRACE("(%p) : Created query %p\n", This , object); } - TRACE("(%p) : returning %lx\n", This, hr); + TRACE("(%p) : returning %x\n", This, hr); return hr; } diff --git a/dlls/d3d9/resource.c b/dlls/d3d9/resource.c index 0ec2072e78..d07d1da392 100644 --- a/dlls/d3d9/resource.c +++ b/dlls/d3d9/resource.c @@ -44,7 +44,7 @@ static ULONG WINAPI IDirect3DResource9Impl_AddRef(LPDIRECT3DRESOURCE9 iface) { IDirect3DResource9Impl *This = (IDirect3DResource9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -53,7 +53,7 @@ static ULONG WINAPI IDirect3DResource9Impl_Release(LPDIRECT3DRESOURCE9 iface) { IDirect3DResource9Impl *This = (IDirect3DResource9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DResource_Release(This->wineD3DResource); diff --git a/dlls/d3d9/stateblock.c b/dlls/d3d9/stateblock.c index 15400dd249..5bfc87002b 100644 --- a/dlls/d3d9/stateblock.c +++ b/dlls/d3d9/stateblock.c @@ -45,7 +45,7 @@ static ULONG WINAPI IDirect3DStateBlock9Impl_AddRef(LPDIRECT3DSTATEBLOCK9 iface) IDirect3DStateBlock9Impl *This = (IDirect3DStateBlock9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -54,7 +54,7 @@ static ULONG WINAPI IDirect3DStateBlock9Impl_Release(LPDIRECT3DSTATEBLOCK9 iface IDirect3DStateBlock9Impl *This = (IDirect3DStateBlock9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DStateBlock_Release(This->wineD3DStateBlock); diff --git a/dlls/d3d9/surface.c b/dlls/d3d9/surface.c index 6eea19e21b..e95354049d 100644 --- a/dlls/d3d9/surface.c +++ b/dlls/d3d9/surface.c @@ -55,7 +55,7 @@ static ULONG WINAPI IDirect3DSurface9Impl_AddRef(LPDIRECT3DSURFACE9 iface) { } else { /* No container, handle our own refcounting */ ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -76,7 +76,7 @@ static ULONG WINAPI IDirect3DSurface9Impl_Release(LPDIRECT3DSURFACE9 iface) { } else { /* No container, handle our own refcounting */ ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DSurface_Release(This->wineD3DSurface); @@ -198,7 +198,7 @@ static HRESULT WINAPI IDirect3DSurface9Impl_GetDesc(LPDIRECT3DSURFACE9 iface, D3 static HRESULT WINAPI IDirect3DSurface9Impl_LockRect(LPDIRECT3DSURFACE9 iface, D3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) { IDirect3DSurface9Impl *This = (IDirect3DSurface9Impl *)iface; TRACE("(%p) Relay\n", This); - TRACE("(%p) calling IWineD3DSurface_LockRect %p %p %p %ld\n", This, This->wineD3DSurface, pLockedRect, pRect, Flags); + TRACE("(%p) calling IWineD3DSurface_LockRect %p %p %p %d\n", This, This->wineD3DSurface, pLockedRect, pRect, Flags); return IWineD3DSurface_LockRect(This->wineD3DSurface, (WINED3DLOCKED_RECT *) pLockedRect, pRect, Flags); } diff --git a/dlls/d3d9/swapchain.c b/dlls/d3d9/swapchain.c index dd6d1e1da4..0b06049a94 100644 --- a/dlls/d3d9/swapchain.c +++ b/dlls/d3d9/swapchain.c @@ -46,7 +46,7 @@ static ULONG WINAPI IDirect3DSwapChain9Impl_AddRef(LPDIRECT3DSWAPCHAIN9 iface) { IDirect3DSwapChain9Impl *This = (IDirect3DSwapChain9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -55,7 +55,7 @@ static ULONG WINAPI IDirect3DSwapChain9Impl_Release(LPDIRECT3DSWAPCHAIN9 iface) IDirect3DSwapChain9Impl *This = (IDirect3DSwapChain9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DSwapChain_Release(This->wineD3DSwapChain); diff --git a/dlls/d3d9/texture.c b/dlls/d3d9/texture.c index 789cdb6e6e..427a7a2d80 100644 --- a/dlls/d3d9/texture.c +++ b/dlls/d3d9/texture.c @@ -47,7 +47,7 @@ static ULONG WINAPI IDirect3DTexture9Impl_AddRef(LPDIRECT3DTEXTURE9 iface) { IDirect3DTexture9Impl *This = (IDirect3DTexture9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -56,7 +56,7 @@ static ULONG WINAPI IDirect3DTexture9Impl_Release(LPDIRECT3DTEXTURE9 iface) { IDirect3DTexture9Impl *This = (IDirect3DTexture9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DTexture_Release(This->wineD3DTexture); @@ -244,7 +244,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateTexture(LPDIRECT3DDEVICE9 iface, UIN IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface; HRESULT hrc = D3D_OK; - TRACE("(%p) : W(%d) H(%d), Lvl(%d) d(%ld), Fmt(%u), Pool(%d)\n", This, Width, Height, Levels, Usage, Format, Pool); + TRACE("(%p) : W(%d) H(%d), Lvl(%d) d(%d), Fmt(%u), Pool(%d)\n", This, Width, Height, Levels, Usage, Format, Pool); /* Allocate the storage for the device */ object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DTexture9Impl)); diff --git a/dlls/d3d9/vertexbuffer.c b/dlls/d3d9/vertexbuffer.c index 56269206ab..fe34eeff9e 100644 --- a/dlls/d3d9/vertexbuffer.c +++ b/dlls/d3d9/vertexbuffer.c @@ -46,7 +46,7 @@ static ULONG WINAPI IDirect3DVertexBuffer9Impl_AddRef(LPDIRECT3DVERTEXBUFFER9 if IDirect3DVertexBuffer9Impl *This = (IDirect3DVertexBuffer9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -55,7 +55,7 @@ static ULONG WINAPI IDirect3DVertexBuffer9Impl_Release(LPDIRECT3DVERTEXBUFFER9 i IDirect3DVertexBuffer9Impl *This = (IDirect3DVertexBuffer9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DVertexBuffer_Release(This->wineD3DVertexBuffer); diff --git a/dlls/d3d9/vertexdeclaration.c b/dlls/d3d9/vertexdeclaration.c index 246b52f44c..55725522ae 100644 --- a/dlls/d3d9/vertexdeclaration.c +++ b/dlls/d3d9/vertexdeclaration.c @@ -200,7 +200,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_AddRef(LPDIRECT3DVERTEXDECLA IDirect3DVertexDeclaration9Impl *This = (IDirect3DVertexDeclaration9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -209,7 +209,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_Release(LPDIRECT3DVERTEXDECL IDirect3DVertexDeclaration9Impl *This = (IDirect3DVertexDeclaration9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DVertexDeclaration_Release(This->wineD3DVertexDeclaration); diff --git a/dlls/d3d9/vertexshader.c b/dlls/d3d9/vertexshader.c index 2244dbdc77..aad04acda9 100644 --- a/dlls/d3d9/vertexshader.c +++ b/dlls/d3d9/vertexshader.c @@ -44,7 +44,7 @@ static ULONG WINAPI IDirect3DVertexShader9Impl_AddRef(LPDIRECT3DVERTEXSHADER9 if IDirect3DVertexShader9Impl *This = (IDirect3DVertexShader9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -53,7 +53,7 @@ static ULONG WINAPI IDirect3DVertexShader9Impl_Release(LPDIRECT3DVERTEXSHADER9 i IDirect3DVertexShader9Impl *This = (IDirect3DVertexShader9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DVertexShader_Release(This->wineD3DVertexShader); @@ -141,7 +141,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShader(LPDIRECT3DDEVICE9 iface, IDi TRACE("(%p) : Relay\n", This); hrc = IWineD3DDevice_SetVertexShader(This->WineD3DDevice, pShader==NULL?NULL:((IDirect3DVertexShader9Impl *)pShader)->wineD3DVertexShader); - TRACE("(%p) : returning hr(%lu)\n", This, hrc); + TRACE("(%p) : returning hr(%u)\n", This, hrc); return hrc; } @@ -156,7 +156,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShader(LPDIRECT3DDEVICE9 iface, IDi hrc = IWineD3DVertexShader_GetParent(pShader, (IUnknown **)ppShader); IWineD3DVertexShader_Release(pShader); } else { - WARN("(%p) : Call to IWineD3DDevice_GetVertexShader failed %lu (device %p)\n", This, hrc, This->WineD3DDevice); + WARN("(%p) : Call to IWineD3DDevice_GetVertexShader failed %u (device %p)\n", This, hrc, This->WineD3DDevice); } TRACE("(%p) : returning %p\n", This, *ppShader); return hrc; diff --git a/dlls/d3d9/volume.c b/dlls/d3d9/volume.c index dbbdbb33ff..6ced19a835 100644 --- a/dlls/d3d9/volume.c +++ b/dlls/d3d9/volume.c @@ -54,7 +54,7 @@ static ULONG WINAPI IDirect3DVolume9Impl_AddRef(LPDIRECT3DVOLUME9 iface) { } else { /* No container, handle our own refcounting */ ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } } @@ -73,7 +73,7 @@ static ULONG WINAPI IDirect3DVolume9Impl_Release(LPDIRECT3DVOLUME9 iface) { } else { /* No container, handle our own refcounting */ ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DVolume_Release(This->wineD3DVolume); @@ -172,7 +172,7 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetDesc(LPDIRECT3DVOLUME9 iface, D3DV static HRESULT WINAPI IDirect3DVolume9Impl_LockBox(LPDIRECT3DVOLUME9 iface, D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) { IDirect3DVolume9Impl *This = (IDirect3DVolume9Impl *)iface; - TRACE("(%p) relay %p %p %p %ld\n", This, This->wineD3DVolume, pLockedVolume, pBox, Flags); + TRACE("(%p) relay %p %p %p %d\n", This, This->wineD3DVolume, pLockedVolume, pBox, Flags); return IWineD3DVolume_LockBox(This->wineD3DVolume, (WINED3DLOCKED_BOX *) pLockedVolume, (WINED3DBOX *) pBox, Flags); } diff --git a/dlls/d3d9/volumetexture.c b/dlls/d3d9/volumetexture.c index cba0ccb084..79ac57d814 100644 --- a/dlls/d3d9/volumetexture.c +++ b/dlls/d3d9/volumetexture.c @@ -46,7 +46,7 @@ static ULONG WINAPI IDirect3DVolumeTexture9Impl_AddRef(LPDIRECT3DVOLUMETEXTURE9 IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface; ULONG ref = InterlockedIncrement(&This->ref); - TRACE("(%p) : AddRef from %ld\n", This, ref - 1); + TRACE("(%p) : AddRef from %d\n", This, ref - 1); return ref; } @@ -55,7 +55,7 @@ static ULONG WINAPI IDirect3DVolumeTexture9Impl_Release(LPDIRECT3DVOLUMETEXTURE9 IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface; ULONG ref = InterlockedDecrement(&This->ref); - TRACE("(%p) : ReleaseRef to %ld\n", This, ref); + TRACE("(%p) : ReleaseRef to %d\n", This, ref); if (ref == 0) { IWineD3DVolumeTexture_Release(This->wineD3DVolumeTexture); @@ -189,7 +189,7 @@ static HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetVolumeLevel(LPDIRECT3DVOLUM static HRESULT WINAPI IDirect3DVolumeTexture9Impl_LockBox(LPDIRECT3DVOLUMETEXTURE9 iface, UINT Level, D3DLOCKED_BOX* pLockedVolume, CONST D3DBOX* pBox, DWORD Flags) { IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface; - TRACE("(%p) Relay %p %p %p %ld\n", This, This->wineD3DVolumeTexture, pLockedVolume, pBox,Flags); + TRACE("(%p) Relay %p %p %p %d\n", This, This->wineD3DVolumeTexture, pLockedVolume, pBox,Flags); return IWineD3DVolumeTexture_LockBox(This->wineD3DVolumeTexture, Level, (WINED3DLOCKED_BOX *) pLockedVolume, (WINED3DBOX *) pBox, Flags); }