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

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 14 06:49:56 CDT 2006


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

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

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

---

 dlls/kernel/tests/module.c |    2 +-
 dlls/kernel/tests/path.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel/tests/module.c b/dlls/kernel/tests/module.c
index 8b7aae8..caf2f68 100644
--- a/dlls/kernel/tests/module.c
+++ b/dlls/kernel/tests/module.c
@@ -54,7 +54,7 @@ static void testGetModuleFileName(const 
         ok(len1W > 0, "Getting module filename for handle %p\n", hMod);
     }
 
-    ok(len1A == strlen(bufA), "Unexpected length of GetModuleFilenameA (%ld/%d)\n", len1A, strlen(bufA));
+    ok(len1A == strlen(bufA), "Unexpected length of GetModuleFilenameA (%ld/%d)\n", len1A, lstrlenA(bufA));
 
     if (is_unicode_enabled)
     {
diff --git a/dlls/kernel/tests/path.c b/dlls/kernel/tests/path.c
index 98a0c0e..12d3500 100644
--- a/dlls/kernel/tests/path.c
+++ b/dlls/kernel/tests/path.c
@@ -512,7 +512,7 @@ static void test_PathNameA(CHAR *curdir,
     rc2=(*pGetLongPathNameA)(curdir,NULL,0);
     ok((rc1-strlen(tmpstr))==(rc2-strlen(curdir)),
        "GetLongPathNameA: wrong return code, %ld instead of %d\n",
-       rc1, strlen(tmpstr)+1);
+       rc1, lstrlenA(tmpstr)+1);
 
     sprintf(dir,"%c:",curDrive);
     rc1=(*pGetLongPathNameA)(dir,tmpstr,sizeof(tmpstr));




More information about the wine-cvs mailing list