d3d8: Win64 printf format warning fixes
H. Verbeet
hverbeet at gmail.com
Tue Oct 10 12:23:08 CDT 2006
-------------- next part --------------
---
dlls/d3d8/Makefile.in | 1 -
dlls/d3d8/basetexture.c | 4 ++--
dlls/d3d8/cubetexture.c | 4 ++--
dlls/d3d8/d3d8_main.c | 2 +-
dlls/d3d8/device.c | 38 +++++++++++++++++++-------------------
dlls/d3d8/directx.c | 4 ++--
dlls/d3d8/indexbuffer.c | 4 ++--
dlls/d3d8/pixelshader.c | 4 ++--
dlls/d3d8/resource.c | 4 ++--
dlls/d3d8/stateblock.c | 4 ++--
dlls/d3d8/surface.c | 6 +++---
dlls/d3d8/swapchain.c | 4 ++--
dlls/d3d8/texture.c | 4 ++--
dlls/d3d8/vertexbuffer.c | 4 ++--
dlls/d3d8/vertexshader.c | 4 ++--
dlls/d3d8/volume.c | 6 +++---
dlls/d3d8/volumetexture.c | 6 +++---
17 files changed, 51 insertions(+), 52 deletions(-)
diff --git a/dlls/d3d8/Makefile.in b/dlls/d3d8/Makefile.in
index 51419a4..87f4812 100644
--- a/dlls/d3d8/Makefile.in
+++ b/dlls/d3d8/Makefile.in
@@ -6,7 +6,6 @@ MODULE = d3d8.dll
IMPORTLIB = libd3d8.$(IMPLIBEXT)
IMPORTS = wined3d user32 gdi32 advapi32 kernel32
EXTRALIBS = -ldxguid -luuid
-EXTRADEFS = -DWINE_NO_LONG_AS_INT
C_SRCS = \
basetexture.c \
diff --git a/dlls/d3d8/basetexture.c b/dlls/d3d8/basetexture.c
index 3a07f9a..122c22d 100644
--- a/dlls/d3d8/basetexture.c
+++ b/dlls/d3d8/basetexture.c
@@ -45,7 +45,7 @@ static ULONG WINAPI IDirect3DBaseTexture
IDirect3DBaseTexture8Impl *This = (IDirect3DBaseTexture8Impl *)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 IDirect3DBaseTexture
IDirect3DBaseTexture8Impl *This = (IDirect3DBaseTexture8Impl *)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/d3d8/cubetexture.c b/dlls/d3d8/cubetexture.c
index 138202c..dffc08e 100644
--- a/dlls/d3d8/cubetexture.c
+++ b/dlls/d3d8/cubetexture.c
@@ -44,7 +44,7 @@ static ULONG WINAPI IDirect3DCubeTexture
IDirect3DCubeTexture8Impl *This = (IDirect3DCubeTexture8Impl *)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 IDirect3DCubeTexture
IDirect3DCubeTexture8Impl *This = (IDirect3DCubeTexture8Impl *)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);
diff --git a/dlls/d3d8/d3d8_main.c b/dlls/d3d8/d3d8_main.c
index 9e3c48b..4abd940 100644
--- a/dlls/d3d8/d3d8_main.c
+++ b/dlls/d3d8/d3d8_main.c
@@ -50,7 +50,7 @@ IDirect3D8* WINAPI Direct3DCreate8(UINT
/* 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);
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 5adc2db..1467830 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -82,7 +82,7 @@ static ULONG WINAPI IDirect3DDevice8Impl
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)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;
}
@@ -91,7 +91,7 @@ static ULONG WINAPI IDirect3DDevice8Impl
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)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 wined3d device %p\n", This->WineD3DDevice);
@@ -121,7 +121,7 @@ static UINT WINAPI IDirect3DDevice8Impl
static HRESULT WINAPI IDirect3DDevice8Impl_ResourceManagerDiscardBytes(LPDIRECT3DDEVICE8 iface, DWORD Bytes) {
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface;
- TRACE("(%p) : Relay bytes(%ld)\n", This, Bytes);
+ TRACE("(%p) : Relay bytes(%d)\n", This, Bytes);
return IWineD3DDevice_EvictManagedResources(This->WineD3DDevice);
}
@@ -324,7 +324,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)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(IDirect3DTexture8Impl));
@@ -401,7 +401,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface;
HRESULT hr = D3D_OK;
- TRACE("(%p) : ELen(%d) Lvl(%d) Usage(%ld) fmt(%u), Pool(%d)\n" , This, EdgeLength, Levels, Usage, Format, Pool);
+ TRACE("(%p) : ELen(%d) Lvl(%d) Usage(%d) fmt(%u), Pool(%d)\n" , This, EdgeLength, Levels, Usage, Format, Pool);
/* Allocate the storage for the device */
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
@@ -505,13 +505,13 @@ static HRESULT WINAPI IDirect3DDevice8Im
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)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, substituting 0\n" , MultisampleQuality);
+ FIXME("MultisampleQuality set to %d, substituting 0\n" , MultisampleQuality);
/*
MultisampleQuality
[in] Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by IDirect3D8::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.
@@ -902,7 +902,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
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;
}
@@ -911,7 +911,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
static HRESULT WINAPI IDirect3DDevice8Impl_SetTexture(LPDIRECT3DDEVICE8 iface, DWORD Stage, IDirect3DBaseTexture8* pTexture) {
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)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 : ((IDirect3DBaseTexture8Impl *)pTexture)->wineD3DBaseTexture);
@@ -1119,7 +1119,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
*ppShader = (handle - This->shader_handles) + VS_HIGHESTFIXEDFXF + 1;
}
}
- TRACE("(%p) : returning %p (handle %#lx)\n", This, object, *ppShader);
+ TRACE("(%p) : returning %p (handle %#x)\n", This, object, *ppShader);
return hrc;
}
@@ -1130,7 +1130,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
TRACE("(%p) : Relay\n", This);
if (VS_HIGHESTFIXEDFXF >= pShader) {
- TRACE("Setting FVF, %d %ld\n", VS_HIGHESTFIXEDFXF, pShader);
+ TRACE("Setting FVF, %d %d\n", VS_HIGHESTFIXEDFXF, pShader);
IWineD3DDevice_SetFVF(This->WineD3DDevice, pShader);
/* Call SetVertexShader with a NULL shader to set the vertexshader in the stateblock to NULL. */
@@ -1145,7 +1145,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
hrc = IWineD3DDevice_SetVertexShader(This->WineD3DDevice, 0 == shader ? NULL : shader->wineD3DVertexShader);
}
}
- TRACE("(%p) : returning hr(%lu)\n", This, hrc);
+ TRACE("(%p) : returning hr(%u)\n", This, hrc);
return hrc;
}
@@ -1171,9 +1171,9 @@ static HRESULT WINAPI IDirect3DDevice8Im
hrc = D3DERR_INVALIDCALL;
}
} 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 %#lx\n", This, *ppShader);
+ TRACE("(%p) : returning %#x\n", This, *ppShader);
return hrc;
}
@@ -1181,7 +1181,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
static HRESULT WINAPI IDirect3DDevice8Impl_DeleteVertexShader(LPDIRECT3DDEVICE8 iface, DWORD pShader) {
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface;
- TRACE("(%p) : pShader %#lx\n", This, pShader);
+ TRACE("(%p) : pShader %#x\n", This, pShader);
if (pShader <= VS_HIGHESTFIXEDFXF || This->allocated_shader_handles <= pShader - (VS_HIGHESTFIXEDFXF + 1)) {
ERR("(%p) : Trying to delete an invalid handle\n", This);
@@ -1297,7 +1297,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
}
- TRACE("(%p) : returning %p (handle %#lx)\n", This, object, *ppShader);
+ TRACE("(%p) : returning %p (handle %#x)\n", This, object, *ppShader);
return hrc;
}
@@ -1305,7 +1305,7 @@ static HRESULT WINAPI IDirect3DDevice8Im
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface;
IDirect3DPixelShader8Impl *shader = NULL;
- TRACE("(%p) : pShader %#lx\n", This, pShader);
+ TRACE("(%p) : pShader %#x\n", This, pShader);
if (pShader > VS_HIGHESTFIXEDFXF && This->allocated_shader_handles > pShader - (VS_HIGHESTFIXEDFXF + 1)) {
shader = This->shader_handles[pShader - (VS_HIGHESTFIXEDFXF + 1)];
@@ -1338,14 +1338,14 @@ static HRESULT WINAPI IDirect3DDevice8Im
*ppShader = (DWORD)NULL;
}
- TRACE("(%p) : returning %#lx\n", This, *ppShader);
+ TRACE("(%p) : returning %#x\n", This, *ppShader);
return hrc;
}
static HRESULT WINAPI IDirect3DDevice8Impl_DeletePixelShader(LPDIRECT3DDEVICE8 iface, DWORD pShader) {
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface;
- TRACE("(%p) : pShader %#lx\n", This, pShader);
+ TRACE("(%p) : pShader %#x\n", This, pShader);
if (pShader <= VS_HIGHESTFIXEDFXF || This->allocated_shader_handles <= pShader - (VS_HIGHESTFIXEDFXF + 1)) {
ERR("(%p) : Trying to delete an invalid handle\n", This);
diff --git a/dlls/d3d8/directx.c b/dlls/d3d8/directx.c
index c5e7094..42ae40d 100644
--- a/dlls/d3d8/directx.c
+++ b/dlls/d3d8/directx.c
@@ -58,7 +58,7 @@ static ULONG WINAPI IDirect3D8Impl_AddRe
IDirect3D8Impl *This = (IDirect3D8Impl *)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;
}
@@ -67,7 +67,7 @@ static ULONG WINAPI IDirect3D8Impl_Relea
IDirect3D8Impl *This = (IDirect3D8Impl *)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 wined3d %p\n", This->WineD3D);
diff --git a/dlls/d3d8/indexbuffer.c b/dlls/d3d8/indexbuffer.c
index 819b210..8f0ec74 100644
--- a/dlls/d3d8/indexbuffer.c
+++ b/dlls/d3d8/indexbuffer.c
@@ -44,7 +44,7 @@ static ULONG WINAPI IDirect3DIndexBuffer
IDirect3DIndexBuffer8Impl *This = (IDirect3DIndexBuffer8Impl *)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 IDirect3DIndexBuffer
IDirect3DIndexBuffer8Impl *This = (IDirect3DIndexBuffer8Impl *)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/d3d8/pixelshader.c b/dlls/d3d8/pixelshader.c
index 86694ce..0715e11 100644
--- a/dlls/d3d8/pixelshader.c
+++ b/dlls/d3d8/pixelshader.c
@@ -44,7 +44,7 @@ static ULONG WINAPI IDirect3DPixelShader
IDirect3DPixelShader8Impl *This = (IDirect3DPixelShader8Impl *)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 IDirect3DPixelShader
IDirect3DPixelShader8Impl *This = (IDirect3DPixelShader8Impl *)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/d3d8/resource.c b/dlls/d3d8/resource.c
index a28ec64..7cf4089 100644
--- a/dlls/d3d8/resource.c
+++ b/dlls/d3d8/resource.c
@@ -43,7 +43,7 @@ static ULONG WINAPI IDirect3DResource8Im
IDirect3DResource8Impl *This = (IDirect3DResource8Impl *)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;
}
@@ -52,7 +52,7 @@ static ULONG WINAPI IDirect3DResource8Im
IDirect3DResource8Impl *This = (IDirect3DResource8Impl *)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/d3d8/stateblock.c b/dlls/d3d8/stateblock.c
index bd20f97..d42fb79 100644
--- a/dlls/d3d8/stateblock.c
+++ b/dlls/d3d8/stateblock.c
@@ -46,7 +46,7 @@ static ULONG WINAPI IDirect3DStateBlock8
IDirect3DStateBlock8Impl *This = (IDirect3DStateBlock8Impl *)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 IDirect3DStateBlock8
IDirect3DStateBlock8Impl *This = (IDirect3DStateBlock8Impl *)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/d3d8/surface.c b/dlls/d3d8/surface.c
index 388e437..8ab312e 100644
--- a/dlls/d3d8/surface.c
+++ b/dlls/d3d8/surface.c
@@ -54,7 +54,7 @@ static ULONG WINAPI IDirect3DSurface8Imp
} 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 IDirect3DSurface8Imp
} 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);
@@ -177,7 +177,7 @@ static HRESULT WINAPI IDirect3DSurface8I
static HRESULT WINAPI IDirect3DSurface8Impl_LockRect(LPDIRECT3DSURFACE8 iface, D3DLOCKED_RECT *pLockedRect, CONST RECT *pRect, DWORD Flags) {
IDirect3DSurface8Impl *This = (IDirect3DSurface8Impl *)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/d3d8/swapchain.c b/dlls/d3d8/swapchain.c
index 38bdcf6..f5b75d8 100644
--- a/dlls/d3d8/swapchain.c
+++ b/dlls/d3d8/swapchain.c
@@ -44,7 +44,7 @@ static ULONG WINAPI IDirect3DSwapChain8I
IDirect3DSwapChain8Impl *This = (IDirect3DSwapChain8Impl *)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 IDirect3DSwapChain8I
IDirect3DSwapChain8Impl *This = (IDirect3DSwapChain8Impl *)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/d3d8/texture.c b/dlls/d3d8/texture.c
index 6ca07d7..2ab8514 100644
--- a/dlls/d3d8/texture.c
+++ b/dlls/d3d8/texture.c
@@ -45,7 +45,7 @@ static ULONG WINAPI IDirect3DTexture8Imp
IDirect3DTexture8Impl *This = (IDirect3DTexture8Impl *)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 IDirect3DTexture8Imp
IDirect3DTexture8Impl *This = (IDirect3DTexture8Impl *)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);
diff --git a/dlls/d3d8/vertexbuffer.c b/dlls/d3d8/vertexbuffer.c
index 4ad5fd6..410659e 100644
--- a/dlls/d3d8/vertexbuffer.c
+++ b/dlls/d3d8/vertexbuffer.c
@@ -45,7 +45,7 @@ static ULONG WINAPI IDirect3DVertexBuffe
IDirect3DVertexBuffer8Impl *This = (IDirect3DVertexBuffer8Impl *)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 IDirect3DVertexBuffe
IDirect3DVertexBuffer8Impl *This = (IDirect3DVertexBuffer8Impl *)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/d3d8/vertexshader.c b/dlls/d3d8/vertexshader.c
index 8f70783..bb1757e 100644
--- a/dlls/d3d8/vertexshader.c
+++ b/dlls/d3d8/vertexshader.c
@@ -44,7 +44,7 @@ static ULONG WINAPI IDirect3DVertexShade
IDirect3DVertexShader8Impl *This = (IDirect3DVertexShader8Impl *)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 IDirect3DVertexShade
IDirect3DVertexShader8Impl *This = (IDirect3DVertexShader8Impl *)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);
diff --git a/dlls/d3d8/volume.c b/dlls/d3d8/volume.c
index 1971f53..e2db2f8 100644
--- a/dlls/d3d8/volume.c
+++ b/dlls/d3d8/volume.c
@@ -53,7 +53,7 @@ static ULONG WINAPI IDirect3DVolume8Impl
} 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 IDirect3DVolume8Impl
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);
@@ -151,7 +151,7 @@ static HRESULT WINAPI IDirect3DVolume8Im
static HRESULT WINAPI IDirect3DVolume8Impl_LockBox(LPDIRECT3DVOLUME8 iface, D3DLOCKED_BOX *pLockedVolume, CONST D3DBOX *pBox, DWORD Flags) {
IDirect3DVolume8Impl *This = (IDirect3DVolume8Impl *)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/d3d8/volumetexture.c b/dlls/d3d8/volumetexture.c
index e86913d..ada6ccd 100644
--- a/dlls/d3d8/volumetexture.c
+++ b/dlls/d3d8/volumetexture.c
@@ -45,7 +45,7 @@ static ULONG WINAPI IDirect3DVolumeTextu
IDirect3DVolumeTexture8Impl *This = (IDirect3DVolumeTexture8Impl *)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 IDirect3DVolumeTextu
IDirect3DVolumeTexture8Impl *This = (IDirect3DVolumeTexture8Impl *)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);
@@ -170,7 +170,7 @@ static HRESULT WINAPI IDirect3DVolumeTex
static HRESULT WINAPI IDirect3DVolumeTexture8Impl_LockBox(LPDIRECT3DVOLUMETEXTURE8 iface, UINT Level, D3DLOCKED_BOX *pLockedVolume, CONST D3DBOX *pBox, DWORD Flags) {
IDirect3DVolumeTexture8Impl *This = (IDirect3DVolumeTexture8Impl *)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);
}
More information about the wine-patches
mailing list