Paul Vriens : advapi32/tests: RegQueryValueW is not always
implemented.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 16 07:20:23 CDT 2007
Module: wine
Branch: master
Commit: 6598aa502821a1c2fe638f9e2dd3ac20c887a146
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6598aa502821a1c2fe638f9e2dd3ac20c887a146
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Fri Mar 16 08:34:01 2007 +0100
advapi32/tests: RegQueryValueW is not always implemented.
---
dlls/advapi32/tests/registry.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 7e689e7..f67364a 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -830,6 +830,11 @@ static void test_reg_query_value(void)
valW[0] = '\0';
size = 0;
ret = RegQueryValueW(subkey, NULL, valW, &size);
+ if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+ {
+ skip("RegQueryValueW is not implemented\n");
+ goto cleanup;
+ }
ok(ret == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", ret);
ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError());
ok(lstrlenW(valW) == 0, "Expected valW to be untouched\n");
@@ -863,6 +868,7 @@ static void test_reg_query_value(void)
ok(!lstrcmpW(valW, expected), "Got wrong value\n");
ok(size == sizeof(expected), "Got wrong size: %d\n", size);
+cleanup:
RegDeleteKeyA(subkey, "");
}
More information about the wine-cvs
mailing list