oleaut32: Conformance test and patch for VarCat

qingdoa daoo qingdao33122 at yahoo.com
Wed Jul 12 01:45:14 CDT 2006


--- Benjamin Arai <me at benjaminarai.com> wrote:

> See http://bugs.winehq.com/show_bug.cgi?id=5545
> License: LGPL
> 
> Changelog:
>     - oleaut32: Add conformance test for VarCat
>     - oleaut32: Update VarCat function to address all conformance test
> failures
>     - Tests all pass on Windows XP SP2 and Wine
> 
> > >From 61bbc58d652c97b70309c0fd37107e60cbaad86a Mon Sep 17 00:00:00 2001
> From: Benjamin Arai <barai at barai.smo.corp.google.com>
> Date: Mon, 10 Jul 2006 09:12:46 -0700
> Subject: [PATCH] oleaut32:VarCat - Adds conformance test and updates VarCat to pass all
> tests
> ---
>  dlls/oleaut32/tests/vartest.c |  319 +++++++++++++++++++++++++++++++++++++++++
>  dlls/oleaut32/variant.c       |  150 +++++++++++++++----
>  2 files changed, 439 insertions(+), 30 deletions(-)
> 
> diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
> index e8e4654..ba7ba84 100644
> --- a/dlls/oleaut32/tests/vartest.c
> +++ b/dlls/oleaut32/tests/vartest.c
=== message truncated ===> 
> 

Be careful when you call VariantClear. Calling VariantClear on a random value is
dangerous.

Specifically,
 Before a local variable is initialzed its content is undefined.
 When a function call fails the content of the output buffer is usually undefined.

__________________________________________________
¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?
http://cn.mail.yahoo.com



More information about the wine-devel mailing list