From 911af4dce9c0b0d5984491baae7e515647519d2e Mon Sep 17 00:00:00 2001 From: Benjamin Arai Date: Tue, 18 Jul 2006 11:14:48 -0700 Subject: [PATCH] oleaut32: Update error codes for VarMod. --- dlls/oleaut32/tests/vartest.c | 4 ++-- dlls/oleaut32/variant.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c index 642bd94414..addc01c344 100644 --- a/dlls/oleaut32/tests/vartest.c +++ b/dlls/oleaut32/tests/vartest.c @@ -2456,7 +2456,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; @@ -2465,7 +2465,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; diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c index 2de855086f..3916b1c729 100644 --- a/dlls/oleaut32/variant.c +++ b/dlls/oleaut32/variant.c @@ -4600,7 +4600,7 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result) return DISP_E_TYPEMISMATCH; case VT_DECIMAL: V_VT(result) = VT_EMPTY; - return DISP_E_OVERFLOW; + return E_INVALIDARG; case VT_ERROR: return DISP_E_TYPEMISMATCH; case VT_RECORD: @@ -4685,7 +4685,7 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result) } else { V_VT(result) = VT_EMPTY; - return DISP_E_OVERFLOW; + return E_INVALIDARG; } case VT_ERROR: return DISP_E_TYPEMISMATCH; -- 2.32.0.93.g670b81a890