Alexandre Julliard : version/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 14 06:50:05 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 298d80c2bd41d85f6d77bdb8b1f1405ca778e163
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=298d80c2bd41d85f6d77bdb8b1f1405ca778e163

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun 13 13:58:12 2006 +0200

version/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings.

---

 dlls/version/tests/install.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/version/tests/install.c b/dlls/version/tests/install.c
index a2651b7..310ef4c 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);
     }
 }
 




More information about the wine-cvs mailing list