From a0c0d2693d99452ee9e0ccd6f76252e9e64eb951 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Wed, 18 Aug 2010 12:21:11 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 92d4ab036d6..b2c086bd0ab 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; } } -- 2.11.4.GIT