From 9583ccdad54659c831606dab936be07ae72b49dd Mon Sep 17 00:00:00 2001 From: Austin English Date: Fri, 24 Oct 2008 03:11:28 -0500 Subject: [PATCH] oleaut32: avoid a NULL pointer dereference --- dlls/oleaut32/typelib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 7e069d6..3fc93b2 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -2870,7 +2870,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; -- 1.5.4.3