comctl32/tests: Avoid size_t printf format warnings.

This commit is contained in:
Alexandre Julliard 2008-03-12 18:14:22 +01:00
parent 716ecc42f9
commit 9dd61548bb

View file

@ -1109,14 +1109,14 @@ static void test_getstring(void)
r = SendMessage(hToolbar, TB_ADDSTRING, 0, (LPARAM)answer);
expect(0, r);
r = SendMessage(hToolbar, TB_GETSTRING, MAKEWPARAM(0, 0), (LPARAM)NULL);
expect(strlen(answer), r);
expect(lstrlenA(answer), r);
r = SendMessage(hToolbar, TB_GETSTRINGW, MAKEWPARAM(0, 0), (LPARAM)NULL);
expect(strlen(answer), r);
expect(lstrlenA(answer), r);
r = SendMessage(hToolbar, TB_GETSTRING, MAKEWPARAM(sizeof(str), 0), (LPARAM)str);
expect(strlen(answer), r);
expect(lstrlenA(answer), r);
expect(0, lstrcmp(answer, str));
r = SendMessage(hToolbar, TB_GETSTRINGW, MAKEWPARAM(sizeof(strW), 0), (LPARAM)strW);
expect(strlen(answer), r);
expect(lstrlenA(answer), r);
expect(0, lstrcmpW(answerW, strW));
DestroyWindow(hToolbar);