gdi32/tests: Avoid using size_t in traces.

This commit is contained in:
Alexandre Julliard 2008-01-07 17:18:29 +01:00
parent ef15bbf1cb
commit 645a1e30a1
1 changed files with 3 additions and 6 deletions

View File

@ -202,16 +202,14 @@ static void test_GdiConvertToDevmodeW(void)
dmA.dmSize = FIELD_OFFSET(DEVMODEA, dmFields) + sizeof(dmA.dmFields); dmA.dmSize = FIELD_OFFSET(DEVMODEA, dmFields) + sizeof(dmA.dmFields);
dmW = pGdiConvertToDevmodeW(&dmA); dmW = pGdiConvertToDevmodeW(&dmA);
ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmFields) + sizeof(dmW->dmFields), ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmFields) + sizeof(dmW->dmFields),
"expected %04x, got %04x\n", "wrong size %u\n", dmW->dmSize);
FIELD_OFFSET(DEVMODEW, dmFields) + sizeof(dmW->dmFields), dmW->dmSize);
HeapFree(GetProcessHeap(), 0, dmW); HeapFree(GetProcessHeap(), 0, dmW);
dmA.dmICMMethod = DMICMMETHOD_NONE; dmA.dmICMMethod = DMICMMETHOD_NONE;
dmA.dmSize = FIELD_OFFSET(DEVMODEA, dmICMMethod) + sizeof(dmA.dmICMMethod); dmA.dmSize = FIELD_OFFSET(DEVMODEA, dmICMMethod) + sizeof(dmA.dmICMMethod);
dmW = pGdiConvertToDevmodeW(&dmA); dmW = pGdiConvertToDevmodeW(&dmA);
ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmICMMethod) + sizeof(dmW->dmICMMethod), ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmICMMethod) + sizeof(dmW->dmICMMethod),
"expected %04x, got %04x\n", "wrong size %u\n", dmW->dmSize);
FIELD_OFFSET(DEVMODEW, dmICMMethod) + sizeof(dmW->dmICMMethod), dmW->dmSize);
ok(dmW->dmICMMethod == DMICMMETHOD_NONE, ok(dmW->dmICMMethod == DMICMMETHOD_NONE,
"expected DMICMMETHOD_NONE, got %u\n", dmW->dmICMMethod); "expected DMICMMETHOD_NONE, got %u\n", dmW->dmICMMethod);
HeapFree(GetProcessHeap(), 0, dmW); HeapFree(GetProcessHeap(), 0, dmW);
@ -219,8 +217,7 @@ static void test_GdiConvertToDevmodeW(void)
dmA.dmSize = 1024; dmA.dmSize = 1024;
dmW = pGdiConvertToDevmodeW(&dmA); dmW = pGdiConvertToDevmodeW(&dmA);
ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmPanningHeight) + sizeof(dmW->dmPanningHeight), ok(dmW->dmSize == FIELD_OFFSET(DEVMODEW, dmPanningHeight) + sizeof(dmW->dmPanningHeight),
"expected %04x, got %04x\n", "wrong size %u\n", dmW->dmSize);
FIELD_OFFSET(DEVMODEW, dmPanningHeight) + sizeof(dmW->dmPanningHeight), dmW->dmSize);
HeapFree(GetProcessHeap(), 0, dmW); HeapFree(GetProcessHeap(), 0, dmW);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);