From 9d0a8b34a8aea0ea96d233ddadd4ba94b85a4f72 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc <mstefani@redhat.de> Date: Wed, 8 Oct 2008 01:35:37 +0200 Subject: [PATCH] d3dxof: Use FAILED instead of !SUCCEEDED. --- dlls/d3dxof/d3dxof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index af84ef8b9a2..0bd59479e67 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -245,7 +245,7 @@ static HRESULT WINAPI IDirectXFileImpl_CreateEnumObject(IDirectXFile* iface, LPV TRACE("Header is correct\n"); hr = IDirectXFileEnumObjectImpl_Create(&object); - if (!SUCCEEDED(hr)) + if (FAILED(hr)) goto error; object->source = dwLoadOptions; @@ -1968,7 +1968,7 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE return DXFILEERR_NOMOREOBJECTS; hr = IDirectXFileDataImpl_Create(&object); - if (!SUCCEEDED(hr)) + if (FAILED(hr)) return hr; This->buf.pxo_globals = &This->xobjects[0][0];