Commit 1d620647 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

oleaut32: Simplify two conditions based on the fact that unsigned variables cannot be negative.

parent 56af18f2
......@@ -3493,7 +3493,7 @@ static HRESULT WINAPI ITypeLib2_fnGetTypeInfo(
TRACE("(%p,%d,%p)\n", iface, index, ppTInfo);
if ((index < 0) || (index >= This->typelib_header.nrtypeinfos)) {
if (index >= This->typelib_header.nrtypeinfos) {
return TYPE_E_ELEMENTNOTFOUND;
}
......@@ -3514,7 +3514,7 @@ static HRESULT WINAPI ITypeLib2_fnGetTypeInfoType(
TRACE("(%p,%d,%p)\n", iface, index, pTKind);
if ((index < 0) || (index >= This->typelib_header.nrtypeinfos)) {
if (index >= This->typelib_header.nrtypeinfos) {
return TYPE_E_ELEMENTNOTFOUND;
}
......
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