oleaut32: tests/vartest.c: VariantInit() isn't enough, you have to give a value, too

Dan Kegel dank at kegel.com
Thu Jun 5 19:30:32 CDT 2008


[Jon Griffith already posted something similar,
http://www.winehq.org/pipermail/wine-patches/2008-May/055353.html
but perhaps this version will be more palatable.]

Be nice to VarCat and feed it variants initialized to zero rather than garbage.

Fixes about 186 errors like this:

 Conditional jump or move depends on uninitialised value(s)
    at  VarBstrFromI2 (vartype.c:6310)
    by  VARIANT_Coerce (variant.c:423)
    by  VariantChangeTypeEx (variant.c:988)
    by  VarCat (variant.c:2616)
    by  test_VarCat (vartest.c:5334)
    by  func_vartest (vartest.c:8543)
  Uninitialised value was created by a stack allocation
    at  test_VarCat (vartest.c:5211)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oleaut32vartest.patch
Type: text/x-diff
Size: 1617 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080605/05071587/attachment.patch 


More information about the wine-patches mailing list