Module: wine Branch: master Commit: 61dfc28b75bafc943fa7c35508b244dcbdd16bac URL: http://source.winehq.org/git/wine.git/?a=commit;h=61dfc28b75bafc943fa7c35508...
Author: Andrey Turkin andrey.turkin@gmail.com Date: Sat May 22 00:49:48 2010 +0400
oleaut32: Store correct offset for imported files in ICreateTypeInfo::AddRefTypeInfo.
---
dlls/oleaut32/typelib2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 70454dc..b5d85ff 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -1681,7 +1681,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddRefTypeInfo( }
guid.guid = tlibattr->guid; - guid.hreftype = This->typelib->typelib_guids*12+2; + guid.hreftype = This->typelib->typelib_segdir[MSFT_SEG_IMPORTFILES].length+2; guid.next_hash = -1;
guid_offset = ctl2_alloc_guid(This->typelib, &guid);