Alexandre Julliard : oleaut32/tests: Only compare the initialized part of DECIMAL variants.
Alexandre Julliard
julliard at winehq.org
Fri Jan 9 09:52:20 CST 2009
Module: wine
Branch: master
Commit: 3b6cab3f77c6991bb9a05c89a046df8b2669be4a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3b6cab3f77c6991bb9a05c89a046df8b2669be4a
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Jan 9 14:03:30 2009 +0100
oleaut32/tests: Only compare the initialized part of DECIMAL variants.
---
dlls/oleaut32/tests/vartest.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index 61225e4..648c959 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -2838,7 +2838,7 @@ static void test_VarFix(void)
S1(U1(*pdec)).Mid32 = 0;
S1(U1(*pdec)).Lo32 = 1;
hres = pVarFix(&v,&vDst);
- ok(hres == S_OK && V_VT(&vDst) == VT_DECIMAL && !memcmp(&v, &vDst, sizeof(v)),
+ ok(hres == S_OK && V_VT(&vDst) == VT_DECIMAL && !memcmp(&V_DECIMAL(&v), &V_DECIMAL(&vDst), sizeof(DECIMAL)),
"VarFix: expected 0x0,%d,identical, got 0x%X,%d\n", VT_DECIMAL,
hres, V_VT(&vDst));
@@ -2953,7 +2953,7 @@ static void test_VarInt(void)
S1(U1(*pdec)).Mid32 = 0;
S1(U1(*pdec)).Lo32 = 1;
hres = pVarInt(&v,&vDst);
- ok(hres == S_OK && V_VT(&vDst) == VT_DECIMAL && !memcmp(&v, &vDst, sizeof(v)),
+ ok(hres == S_OK && V_VT(&vDst) == VT_DECIMAL && !memcmp(&V_DECIMAL(&v), &V_DECIMAL(&vDst), sizeof(DECIMAL)),
"VarInt: expected 0x0,%d,identical, got 0x%X,%d\n", VT_DECIMAL,
hres, V_VT(&vDst));
More information about the wine-cvs
mailing list