Alexandre Julliard : d3d9: Don' t use sizeof in traces to avoid printf format warnings.
Module: wine Branch: refs/heads/master Commit: 43743282713b66a0f91813889218f8f0b0d61f16 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=43743282713b66a0f9181388... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jun 13 14:09:46 2006 +0200 d3d9: Don't use sizeof in traces to avoid printf format warnings. --- dlls/d3d9/stateblock.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/dlls/d3d9/stateblock.c b/dlls/d3d9/stateblock.c index 5877b76..15400dd 100644 --- a/dlls/d3d9/stateblock.c +++ b/dlls/d3d9/stateblock.c @@ -106,10 +106,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_Crea TRACE("(%p) Relay\n", This); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DStateBlock9Impl)); - if (NULL == object) { - FIXME("(%p) Failed to allocate %d bytes\n", This, sizeof(IDirect3DStateBlock9Impl)); - return E_OUTOFMEMORY; - } + if (NULL == object) return E_OUTOFMEMORY; object->lpVtbl = &Direct3DStateBlock9_Vtbl; object->ref = 1; @@ -151,10 +148,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_En } /* allocate a new IDirectD3DStateBlock */ object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY ,sizeof(IDirect3DStateBlock9Impl)); - if (!object) { - FIXME("(%p) Failed to allocate %d bytes\n", This, sizeof(IDirect3DStateBlock9Impl)); - return E_OUTOFMEMORY; - } + if (!object) return E_OUTOFMEMORY; object->ref = 1; object->lpVtbl = &Direct3DStateBlock9_Vtbl; object->wineD3DStateBlock = wineD3DStateBlock;
participants (1)
-
Alexandre Julliard