From 5d900bb0f625f7870170c1a5ae570872664aba5c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 21 Aug 2008 16:05:15 +0200 Subject: [PATCH] Avoid some size_t printf format warnings. --- dlls/dplayx/tests/dplayx.c | 2 +- dlls/quartz/avisplit.c | 2 +- dlls/winhttp/tests/winhttp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/dplayx/tests/dplayx.c b/dlls/dplayx/tests/dplayx.c index 4fdc494799e..19c42b4d276 100644 --- a/dlls/dplayx/tests/dplayx.c +++ b/dlls/dplayx/tests/dplayx.c @@ -27,7 +27,7 @@ #define check(expected, result) \ ok( (expected) == (result), \ "expected=%d got=%d\n", \ - expected, result ); + (int)(expected), (int)(result) ); #define checkLP(expected, result) \ ok( (expected) == (result), \ "expected=%p got=%p\n", \ diff --git a/dlls/quartz/avisplit.c b/dlls/quartz/avisplit.c index 3f1625c63e9..e93d1d10432 100644 --- a/dlls/quartz/avisplit.c +++ b/dlls/quartz/avisplit.c @@ -549,7 +549,7 @@ static HRESULT AVISplitter_ProcessIndex(AVISplitterImpl *This, AVISTDINDEX **ind { FIXME("Invalid index chunk encountered: %u/%u, %u/%u, %u/%u, %u/%u\n", pIndex->bIndexType, AVI_INDEX_OF_CHUNKS, pIndex->wLongsPerEntry, 2, - rest, (pIndex->nEntriesInUse * sizeof(DWORD) * pIndex->wLongsPerEntry), + rest, (DWORD)(pIndex->nEntriesInUse * sizeof(DWORD) * pIndex->wLongsPerEntry), pIndex->bIndexSubType, AVI_INDEX_SUB_DEFAULT); *index = NULL; return E_INVALIDARG; diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c index 527794dddf8..d77dcc0f926 100644 --- a/dlls/winhttp/tests/winhttp.c +++ b/dlls/winhttp/tests/winhttp.c @@ -129,7 +129,7 @@ static void test_SendRequest (void) todo_wine ok(ret == TRUE, "WinHttpReadData failed: %u.\n", GetLastError()); todo_wine ok(bytes_rw == strlen(test_post), "Read %u bytes instead of %d.\n", - bytes_rw, strlen(test_post)); + bytes_rw, lstrlen(test_post)); todo_wine ok(strncmp(buffer, test_post, bytes_rw) == 0, "Data read did not match, got '%s'.\n", buffer);