Commit 110d9663 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

oleaut32: Handle negative offsets into the custom data table.

Fixes a crash in the Visio 2002 installer.
parent d6073cc5
...@@ -1939,6 +1939,8 @@ static int MSFT_CustData( TLBContext *pcx, int offset, struct list *custdata_lis ...@@ -1939,6 +1939,8 @@ static int MSFT_CustData( TLBContext *pcx, int offset, struct list *custdata_lis
TRACE_(typelib)("\n"); TRACE_(typelib)("\n");
if (pcx->pTblDir->pCDGuids.offset < 0) return 0;
while(offset >=0){ while(offset >=0){
count++; count++;
pNew=heap_alloc_zero(sizeof(TLBCustData)); pNew=heap_alloc_zero(sizeof(TLBCustData));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment