The patch fixes the VarMod conformance test for oleaut32.dll

Benjamin Arai me at benjaminarai.com
Thu Jul 6 02:28:54 CDT 2006


Changelog:
   oleaut32: fixes incorrect "expected" values for VarMod conformance test
   Tests pass on Windows XP SP1 and Wine.

Benjamin Arai
me at benjaminarai.com

---
  dlls/oleaut32/tests/vartest.c |    6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index c69fd6d..de196d8 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -2437,7 +2437,7 @@ static void test_VarMod(void)
  	hexpected = DISP_E_TYPEMISMATCH;
        } else if((l == VT_NULL) && (r == VT_DECIMAL))
        {
-	hexpected = DISP_E_OVERFLOW;
+	hexpected = E_INVALIDARG;
        } else if((l == VT_UNKNOWN) || ((r == VT_UNKNOWN) && lFound && lValid))
        {
  	hexpected = DISP_E_TYPEMISMATCH;
@@ -2446,7 +2446,7 @@ static void test_VarMod(void)
  	hexpected = S_OK;
        } else if((l == VT_DECIMAL) || ((r == VT_DECIMAL) && lFound && lValid))
        {
-	hexpected = DISP_E_OVERFLOW;
+	hexpected = E_INVALIDARG;
        } else if(l == VT_RECORD)
        {
  	hexpected = DISP_E_TYPEMISMATCH;
@@ -2515,7 +2515,7 @@ static void test_VarMod(void)
        {
          hres = pVarMod(&v1,&v2,&vDst);
          ok(hres == hexpected,
-           "VarMod: expected 0x%lx, got 0x%lX for l type of %d, r type of %d,\n", hexpected, hres, l, r);
+          "VarMod: expected 0x%lx, got 0x%lX for l type of %d, r type of %d,\n", hexpected, hres, l, r);
        }
      }
    }
-- 
1.4.0





More information about the wine-patches mailing list