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

This commit is contained in:
Gerald Pfeifer 2007-11-22 01:06:32 +01:00 committed by Alexandre Julliard
parent 56af18f223
commit 1d62064748
1 changed files with 2 additions and 2 deletions

View File

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