Commit 0c07d3ba authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

oleaut32: Use FAILED instead of !SUCCEEDED.

parent 704ebf28
......@@ -394,7 +394,7 @@ HRESULT WINAPI LoadTypeLibEx(
/* else fall-through */
case REGKIND_REGISTER:
if (!SUCCEEDED(res = RegisterTypeLib(*pptLib, (LPOLESTR)szPath, NULL)))
if (FAILED(res = RegisterTypeLib(*pptLib, (LPOLESTR)szPath, NULL)))
{
IUnknown_Release(*pptLib);
*pptLib = 0;
......@@ -491,7 +491,7 @@ HRESULT WINAPI RegisterTypeLib(
if (ptlib == NULL || szFullPath == NULL)
return E_INVALIDARG;
if (!SUCCEEDED(ITypeLib_GetLibAttr(ptlib, &attr)))
if (FAILED(ITypeLib_GetLibAttr(ptlib, &attr)))
return E_FAIL;
get_typelib_key( &attr->guid, attr->wMajorVerNum, attr->wMinorVerNum, keyName );
......@@ -6449,7 +6449,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
ref_type->pImpTLInfo->lcid,
&pTLib);
if(!SUCCEEDED(result)) {
if(FAILED(result)) {
BSTR libnam=SysAllocString(ref_type->pImpTLInfo->name);
result=LoadTypeLib(libnam, &pTLib);
SysFreeString(libnam);
......
......@@ -1349,7 +1349,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddRefTypeInfo(
* implementation of ITypeInfo. So we need to do the following...
*/
res = ITypeInfo_GetContainingTypeLib(pTInfo, &container, &index);
if (!SUCCEEDED(res)) {
if (FAILED(res)) {
TRACE("failed to find containing typelib.\n");
return res;
}
......
......@@ -5673,14 +5673,14 @@ HRESULT WINAPI VarPow(LPVARIANT left, LPVARIANT right, LPVARIANT result)
}
hr = VariantChangeType(&dl,left,0,resvt);
if (!SUCCEEDED(hr)) {
if (FAILED(hr)) {
ERR("Could not change passed left argument to VT_R8, handle it differently.\n");
hr = E_FAIL;
goto end;
}
hr = VariantChangeType(&dr,right,0,resvt);
if (!SUCCEEDED(hr)) {
if (FAILED(hr)) {
ERR("Could not change passed right argument to VT_R8, handle it differently.\n");
hr = E_FAIL;
goto end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment