Module: wine Branch: master Commit: ffdf21af0b6825204c637745d2f4a428d61ac9e7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ffdf21af0b6825204c637745d2...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jan 8 13:02:46 2009 +0100
shlwapi/tests: Avoid printing pointer differences in traces.
---
dlls/shlwapi/tests/string.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/dlls/shlwapi/tests/string.c b/dlls/shlwapi/tests/string.c index 34ab7ba..df9398a 100644 --- a/dlls/shlwapi/tests/string.c +++ b/dlls/shlwapi/tests/string.c @@ -203,9 +203,8 @@ static void test_StrChrA(void) for (count = 32; count < 128; count++) { LPSTR result = StrChrA(string+32, count); - ok(result - string == count, - "found char '%c' in wrong place: got %d, expected %d\n", - count, result - string, count); + INT pos = result - string; + ok(pos == count, "found char '%c' in wrong place: got %d, expected %d\n", count, pos, count); }
for (count = 32; count < 128; count++) @@ -340,9 +339,8 @@ static void test_StrRChrW(void) for (count = 32; count < 128; count++) { LPWSTR result = StrRChrW(string+32, NULL, count); - ok(result - string == count, - "found char %d in wrong place: got %d, expected %d\n", - count, result - string, count); + INT pos = result - string; + ok(pos == count, "found char %d in wrong place: got %d, expected %d\n", count, pos, count); }
for (count = 32; count < 128; count++)