Module: wine Branch: master Commit: 234afb88e8f62c6891a32b5848295cb8b84535ce URL: http://source.winehq.org/git/wine.git/?a=commit;h=234afb88e8f62c6891a32b5848...
Author: Andrey Turkin andrey.turkin@gmail.com Date: Sat May 22 00:49:29 2010 +0400
oleaut32: Don't rewrite name's hreftype.
---
dlls/oleaut32/typelib2.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index b5d85ff..aa14d22 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -2239,7 +2239,8 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetFuncAndParamNames( iter->name = offset;
namedata = This->typelib->typelib_segment_data[MSFT_SEG_NAME] + offset; - *((INT *)namedata) = This->typelib->typelib_typeinfo_offsets[This->typeinfo->typekind >> 16]; + if (*((INT*)namedata) == -1) + *((INT *)namedata) = This->typelib->typelib_typeinfo_offsets[This->typeinfo->typekind >> 16];
len = iter->u.data[0]/4 - iter->u.data[5]*3;