diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index a5b0cdd6ab6..1cab886a4b0 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -1939,6 +1939,8 @@ static int MSFT_CustData( TLBContext *pcx, int offset, struct list *custdata_lis TRACE_(typelib)("\n"); + if (pcx->pTblDir->pCDGuids.offset < 0) return 0; + while(offset >=0){ count++; pNew=heap_alloc_zero(sizeof(TLBCustData));