mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
version/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings.
This commit is contained in:
parent
0cbd0a367d
commit
298d80c2bd
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue