oleaut32: Handle negative offsets into the custom data table.

Fixes a crash in the Visio 2002 installer.
This commit is contained in:
Hans Leidekker 2012-01-17 12:06:18 +01:00 committed by Alexandre Julliard
parent d6073cc58a
commit 110d96634b
1 changed files with 2 additions and 0 deletions

View File

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