Juan Lang : wintrust: Don't fail if a registry value doesn't exist.

Alexandre Julliard julliard at winehq.org
Thu Feb 12 11:14:45 CST 2009


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Feb 11 17:47:40 2009 -0800

wintrust: Don't fail if a registry value doesn't exist.

---

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

diff --git a/dlls/wintrust/tests/register.c b/dlls/wintrust/tests/register.c
index 81be104..37801cc 100644
--- a/dlls/wintrust/tests/register.c
+++ b/dlls/wintrust/tests/register.c
@@ -332,9 +332,9 @@ static void test_RegPolicyFlags(void)
 
     size = sizeof(flags1);
     r = RegQueryValueExA(key, State, NULL, NULL, (LPBYTE)&flags1, &size);
-    ok(!r, "RegQueryValueEx failed: %d\n", r);
-
-    ok(flags1 == flags2, "Got %08x flags instead of %08x\n", flags1, flags2);
+    ok(!r || r == ERROR_FILE_NOT_FOUND, "RegQueryValueEx failed: %d\n", r);
+    if (r)
+        ok(flags1 == flags2, "Got %08x flags instead of %08x\n", flags1, flags2);
 
     flags3 = flags2 | 1;
     ret = pWintrustSetRegPolicyFlags(flags3);




More information about the wine-cvs mailing list