Andrew Eikum : oleaut32: Use correct bitpattern if referenced type is not user defined.

Alexandre Julliard julliard at winehq.org
Thu Aug 19 11:44:01 CDT 2010


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

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Wed Aug 18 12:21:11 2010 -0500

oleaut32: Use correct bitpattern if referenced type is not user defined.

This reduces the diff between the TLB file output by Wine and Windows XP
when running the typelib test module.

---

 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 92d4ab0..b2c086b 100644
--- a/dlls/oleaut32/typelib2.c
+++ b/dlls/oleaut32/typelib2.c
@@ -1109,7 +1109,7 @@ static int ctl2_encode_typedesc(
 			mix_field = typedata[0]>>16;
 			break;
 		    default:
-			mix_field = 0x7fff;
+			mix_field = ((typedata[0] >> 16) == 0x7fff) ? 0x7fff : 0x7ffe;
 			break;
 		}
 	    }




More information about the wine-cvs mailing list