Commit 6500bb0e authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll/tests: Avoid printing pointer differences in traces.

parent 2335a44e
...@@ -86,11 +86,12 @@ static void testQuery(void) ...@@ -86,11 +86,12 @@ static void testQuery(void)
WCHAR bv[257]; WCHAR bv[257];
UNICODE_STRING name; UNICODE_STRING name;
UNICODE_STRING value; UNICODE_STRING value;
const struct test* test;
NTSTATUS nts; NTSTATUS nts;
unsigned int i;
for (test = tests; test->var; test++) for (i = 0; tests[i].var; i++)
{ {
const struct test *test = &tests[i];
name.Length = strlen(test->var) * 2; name.Length = strlen(test->var) * 2;
name.MaximumLength = name.Length + 2; name.MaximumLength = name.Length + 2;
name.Buffer = bn; name.Buffer = bn;
...@@ -103,7 +104,7 @@ static void testQuery(void) ...@@ -103,7 +104,7 @@ static void testQuery(void)
nts = pRtlQueryEnvironmentVariable_U(small_env, &name, &value); nts = pRtlQueryEnvironmentVariable_U(small_env, &name, &value);
ok( nts == test->status || (test->alt && nts == test->alt), ok( nts == test->status || (test->alt && nts == test->alt),
"[%d]: Wrong status for '%s', expecting %x got %x\n", "[%d]: Wrong status for '%s', expecting %x got %x\n",
test - tests, test->var, test->status, nts ); i, test->var, test->status, nts );
if (nts == test->status) switch (nts) if (nts == test->status) switch (nts)
{ {
case STATUS_SUCCESS: case STATUS_SUCCESS:
......
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