Francois Gouget : oleaut32/tests: Fix compilation on systems that don' t support nameless structs or unions.

Alexandre Julliard julliard at winehq.org
Mon Sep 24 16:04:25 CDT 2012


Module: wine
Branch: master
Commit: 085b1ba3f50e2f1d8af51c6a760d19389ee3cf67
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=085b1ba3f50e2f1d8af51c6a760d19389ee3cf67

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Sep 24 08:03:29 2012 +0200

oleaut32/tests: Fix compilation on systems that don't support nameless structs or unions.

---

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

diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index 94bbf7e..c7b46db 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -3375,10 +3375,10 @@ static void test_VarRound(void)
                 i, S(U(V_DECIMAL(&vDst))).sign, ptr->ret.sign);
             ok(V_DECIMAL(&vDst).Hi32 == ptr->ret.Hi32, "%d: got Hi32 %d, expected %d\n",
                 i, V_DECIMAL(&vDst).Hi32, ptr->ret.Hi32);
-            ok(S(U(V_DECIMAL(&vDst))).Mid32 == ptr->ret.Mid32, "%d: got Mid32 %d, expected %d\n",
-                i, S(U(V_DECIMAL(&vDst))).Mid32, ptr->ret.Mid32);
-            ok(S(U(V_DECIMAL(&vDst))).Lo32 == ptr->ret.Lo32, "%d: got Lo32 %d, expected %d\n",
-                i, S(U(V_DECIMAL(&vDst))).Lo32, ptr->ret.Lo32);
+            ok(S1(U1(V_DECIMAL(&vDst))).Mid32 == ptr->ret.Mid32, "%d: got Mid32 %d, expected %d\n",
+               i, S1(U1(V_DECIMAL(&vDst))).Mid32,  ptr->ret.Mid32);
+            ok(S1(U1(V_DECIMAL(&vDst))).Lo32 == ptr->ret.Lo32, "%d: got Lo32 %d, expected %d\n",
+                i, S1(U1(V_DECIMAL(&vDst))).Lo32, ptr->ret.Lo32);
         }
     }
 




More information about the wine-cvs mailing list