Commit 6598aa50 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

advapi32/tests: RegQueryValueW is not always implemented.

parent c2b05d32
......@@ -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, "");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment