oleaut32: Use FAILED instead of !SUCCEEDED.
This commit is contained in:
parent
704ebf280e
commit
0c07d3ba37
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue