Huw Davies : widl: Add missing width and alignment for VARIANT.
Alexandre Julliard
julliard at winehq.org
Mon Feb 27 15:12:08 CST 2017
Module: wine
Branch: master
Commit: 5a06b6b035b105d8ead9f64698f7b458fa9cfa86
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5a06b6b035b105d8ead9f64698f7b458fa9cfa86
Author: Huw Davies <huw at codeweavers.com>
Date: Sat Feb 25 10:09:14 2017 +0000
widl: Add missing width and alignment for VARIANT.
Spotted by André Hentschel.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/widl/write_msft.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index 7904e45..4b09317 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -885,6 +885,8 @@ static int encode_type(
case VT_VARIANT:
*encoded_type = default_type;
+ *width = 8 + 2 * pointer_size;
+ *alignment = 8;
break;
case VT_LPSTR:
More information about the wine-cvs
mailing list