Andrey Turkin : oleaut32: Don't rewrite name's hreftype.

Alexandre Julliard julliard at winehq.org
Mon May 24 11:30:48 CDT 2010


Module: wine
Branch: master
Commit: 234afb88e8f62c6891a32b5848295cb8b84535ce
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=234afb88e8f62c6891a32b5848295cb8b84535ce

Author: Andrey Turkin <andrey.turkin at 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;
 




More information about the wine-cvs mailing list