kernel32/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings.
This commit is contained in:
parent
93fd4524e4
commit
e2e6115193
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue