Austin English : oleaut32: Avoid a NULL pointer dereference.
Alexandre Julliard
julliard at winehq.org
Tue Sep 1 11:05:49 CDT 2009
Module: wine
Branch: master
Commit: e7bbc32bd120351199dc1a1a7fb402ec089384a0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e7bbc32bd120351199dc1a1a7fb402ec089384a0
Author: Austin English <austinenglish at gmail.com>
Date: Mon Aug 31 20:38:01 2009 -0500
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 b86109c..be8462a 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -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;
More information about the wine-cvs
mailing list