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

This commit is contained in:
Alexandre Julliard 2006-06-13 13:57:12 +02:00
parent 93fd4524e4
commit e2e6115193
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ static void testGetModuleFileName(const char* name)
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)
{

View File

@ -512,7 +512,7 @@ static void test_PathNameA(CHAR *curdir, CHAR curDrive, CHAR otherDrive)
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));