From 298d80c2bd41d85f6d77bdb8b1f1405ca778e163 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 13 Jun 2006 13:58:12 +0200 Subject: [PATCH] version/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings. --- dlls/version/tests/install.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/version/tests/install.c b/dlls/version/tests/install.c index a2651b76b60..310ef4c4505 100644 --- a/dlls/version/tests/install.c +++ b/dlls/version/tests/install.c @@ -75,7 +75,7 @@ static void test_find_file(void) switch(ret) { case VFF_CURNEDEST: ok(dwCur == 1 + strlen(windir), "Wrong length of buffer for current location: " - "got %d(%s) expected %d\n", dwCur, curdir, strlen(windir)+1); + "got %d(%s) expected %d\n", dwCur, curdir, lstrlenA(windir)+1); ok(dwOut == 1, "Wrong length of buffer for the recommended installation location: " "got %d(%s) expected 1\n", dwOut, outBuf); break; @@ -97,7 +97,7 @@ static void test_find_file(void) switch(ret) { case VFF_CURNEDEST: ok(dwCur == 1 + strlen(windir), "Wrong length of buffer for current location: " - "got %d(%s) expected %d\n", dwCur, curdir, strlen(windir)+1); + "got %d(%s) expected %d\n", dwCur, curdir, lstrlenA(windir)+1); ok(dwOut == 1, "Wrong length of buffer for the recommended installation location: " "got %d(%s) expected 1\n", dwOut, outBuf); break; @@ -149,7 +149,7 @@ static void test_find_file(void) ret = VerFindFileA(VFFF_ISSHAREDFILE, filename, NULL, appdir, curdir, &dwCur, outBuf, &dwOut); todo_wine ok(VFF_CURNEDEST == ret, "Wrong return value got %lx expected VFF_CURNEDEST\n", ret); ok(dwOut == 1 + strlen(windir), "Wrong length of buffer for current location: " - "got %d(%s) expected %d\n", dwOut, outBuf, strlen(windir)+1); + "got %d(%s) expected %d\n", dwOut, outBuf, lstrlenA(windir)+1); dwCur=MAX_PATH; dwOut=MAX_PATH; @@ -158,7 +158,7 @@ static void test_find_file(void) ret = VerFindFileA(0, filename, NULL, appdir, curdir, &dwCur, outBuf, &dwOut); todo_wine ok(VFF_CURNEDEST == ret, "Wrong return value got %lx expected VFF_CURNEDEST\n", ret); ok(dwOut == 1 + strlen(appdir), "Wrong length of buffer for current location: " - "got %d(%s) expected %d\n", dwOut, outBuf, strlen(appdir)+1); + "got %d(%s) expected %d\n", dwOut, outBuf, lstrlenA(appdir)+1); } } -- 2.11.4.GIT