oleaut32: Avoid a NULL pointer dereference.

This commit is contained in:
Austin English 2009-08-31 20:38:01 -05:00 committed by Alexandre Julliard
parent 7420c0d0de
commit e7bbc32bd1
1 changed files with 1 additions and 1 deletions

View File

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