Commit e7bbc32b authored by Austin English's avatar Austin English Committed by Alexandre Julliard

oleaut32: Avoid a NULL pointer dereference.

parent 7420c0d0
......@@ -3131,7 +3131,7 @@ typedef struct
static HRESULT sltg_get_typelib_ref(const sltg_ref_lookup_t *table, DWORD typeinfo_ref,
HREFTYPE *typelib_ref)
{
if(typeinfo_ref < table->num)
if(table && typeinfo_ref < table->num)
{
*typelib_ref = table->refs[typeinfo_ref];
return S_OK;
......
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