shlwapi/tests: Avoid printing pointer differences in traces.

This commit is contained in:
Alexandre Julliard 2009-01-08 13:02:46 +01:00
parent 1639f1e507
commit ffdf21af0b
1 changed files with 4 additions and 6 deletions

View File

@ -203,9 +203,8 @@ static void test_StrChrA(void)
for (count = 32; count < 128; count++) for (count = 32; count < 128; count++)
{ {
LPSTR result = StrChrA(string+32, count); LPSTR result = StrChrA(string+32, count);
ok(result - string == count, INT pos = result - string;
"found char '%c' in wrong place: got %d, expected %d\n", ok(pos == count, "found char '%c' in wrong place: got %d, expected %d\n", count, pos, count);
count, result - string, count);
} }
for (count = 32; count < 128; count++) for (count = 32; count < 128; count++)
@ -340,9 +339,8 @@ static void test_StrRChrW(void)
for (count = 32; count < 128; count++) for (count = 32; count < 128; count++)
{ {
LPWSTR result = StrRChrW(string+32, NULL, count); LPWSTR result = StrRChrW(string+32, NULL, count);
ok(result - string == count, INT pos = result - string;
"found char %d in wrong place: got %d, expected %d\n", ok(pos == count, "found char %d in wrong place: got %d, expected %d\n", count, pos, count);
count, result - string, count);
} }
for (count = 32; count < 128; count++) for (count = 32; count < 128; count++)