Alexandre Julliard : wintrust/tests: Fix the WintrustGetRegPolicyFlags to work right the first time.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 13 06:14:07 CDT 2007


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jun 13 12:05:55 2007 +0200

wintrust/tests: Fix the WintrustGetRegPolicyFlags to work right the first time.

---

 dlls/wintrust/tests/register.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wintrust/tests/register.c b/dlls/wintrust/tests/register.c
index 049e8e3..6e6ed20 100644
--- a/dlls/wintrust/tests/register.c
+++ b/dlls/wintrust/tests/register.c
@@ -311,6 +311,8 @@ static void test_RegPolicyFlags(void)
     if (!pGetFlags || !pSetFlags)
         skip("Policy flags functions not present\n");
 
+    pGetFlags(&flags2);
+
     r = RegOpenKeyExA(HKEY_CURRENT_USER, Software_Publishing, 0, KEY_ALL_ACCESS,
      &key);
     ok(!r, "RegOpenKeyEx failed: %d\n", r);
@@ -319,7 +321,6 @@ static void test_RegPolicyFlags(void)
     r = RegQueryValueExA(key, State, NULL, NULL, (LPBYTE)&flags1, &size);
     ok(!r, "RegQueryValueEx failed: %d\n", r);
 
-    pGetFlags(&flags2);
     ok(flags1 == flags2, "Got %08x flags instead of %08x\n", flags1, flags2);
 
     flags3 = flags2 | 1;




More information about the wine-cvs mailing list