d3dxof: Use FAILED instead of !SUCCEEDED.

This commit is contained in:
Michael Stefaniuc 2008-10-08 01:35:37 +02:00 committed by Alexandre Julliard
parent 7fe70f2c2b
commit 9d0a8b34a8
1 changed files with 2 additions and 2 deletions

View File

@ -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];