widl #27: add VT_R8 encoding

Huw D M Davies h.davies1 at physics.ox.ac.uk
Tue Jan 25 08:21:35 CST 2005


        Huw Davies <huw at codeweavers.com>
        Add encoding for VT_R8
        Bug fix: Initialise child_size
-- 
Huw Davies
huw at codeweavers.com
Index: tools/widl/write_msft.c
===================================================================
RCS file: /home/wine/wine/tools/widl/write_msft.c,v
retrieving revision 1.21
diff -u -p -r1.21 write_msft.c
--- tools/widl/write_msft.c	25 Jan 2005 10:56:58 -0000	1.21
+++ tools/widl/write_msft.c	25 Jan 2005 14:19:09 -0000
@@ -682,7 +682,7 @@ static int encode_type(
     int typeoffset;
     int *typedata;
     int target_type;
-    int child_size;
+    int child_size = 0;
 
     chat("encode_type vt %d type %p\n", vt, type);
 
@@ -739,6 +739,12 @@ static int encode_type(
 	*encoded_type = default_type;
 	*width = 4;
 	*alignment = 4;
+	break;
+
+    case VT_R8:
+	*encoded_type = default_type;
+	*width = 8;
+	*alignment = 8;
 	break;
 
     case VT_CY:



More information about the wine-patches mailing list