oleaut32:typelib - Addresses VT_VOID bug in typedescvt_to_variantvt

Benjamin Arai me at benjaminarai.com
Wed Jul 12 22:06:42 CDT 2006


http://bugs.winehq.org/show_bug.cgi?id=5397

The patch adds the correct handling for converting variant type VT_VOID in function typedescvt_to_variantvt. The original implemenation just returns an error stating unable to convert the type.

Changelog:
   - Adds handling for type VT_VOID in typedescvt_to_variantvt
   - Fixes bug 5397

Benjamin Arai
me at benjaminarai.com

-------------- next part --------------
>From 500c867c6a3b1a17d496ae26c947b590d87c3d31 Mon Sep 17 00:00:00 2001
From: Benjamin Arai <me at benjaminarai.com>
Date: Wed, 12 Jul 2006 09:41:25 -0700
Subject: [PATCH] The patch fixes a bug in oleaut32:typelib:typedescvt_to_variantvt VOID was not be accounted for
---
 dlls/oleaut32/typelib.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index ce3a1dc..aa470f8 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -5067,6 +5067,8 @@ static HRESULT typedescvt_to_variantvt(I
         hr = userdefined_to_variantvt(tinfo, tdesc, vt);
         break;
     case VT_VOID:
+        *vt |= VT_VOID;
+        break;
     case VT_CARRAY:
     case VT_PTR:
     case VT_LPSTR:
-- 
1.4.0



More information about the wine-patches mailing list