Module: wine Branch: master Commit: 9d0a8b34a8aea0ea96d233ddadd4ba94b85a4f72 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9d0a8b34a8aea0ea96d233ddad...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Oct 8 01:35:37 2008 +0200
d3dxof: Use FAILED instead of !SUCCEEDED.
---
dlls/d3dxof/d3dxof.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index af84ef8..0bd5947 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];