Commit 9776f5b8 authored by Stefan Siebert's avatar Stefan Siebert Committed by Alexandre Julliard

oleaut32: GetTypeInfoType - Return TYPE_E_ELEMENTNOTFOUND if index out of bounds.

parent f740a280
......@@ -3603,6 +3603,9 @@ static HRESULT WINAPI ITypeLib2_fnGetTypeInfoType(
int i;
ITypeInfoImpl *pTInfo = This->pTypeInfo;
if ((ITypeLib2_fnGetTypeInfoCount(iface) < index + 1) || (index < 0))
return TYPE_E_ELEMENTNOTFOUND;
TRACE("(%p) index %d\n", This, index);
if(!pTKind) return E_INVALIDARG;
......
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