d3dxof: Use FAILED instead of !SUCCEEDED.

Michael Stefaniuc mstefani at redhat.de
Tue Oct 7 18:35:37 CDT 2008


---
 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 a4801f5..dfd10c4 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;
@@ -1945,7 +1945,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];
-- 
1.6.0.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081008/3826d7a9/attachment.pgp 


More information about the wine-patches mailing list