Commit 298d80c2 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 0cbd0a36
...@@ -75,7 +75,7 @@ static void test_find_file(void) ...@@ -75,7 +75,7 @@ static void test_find_file(void)
switch(ret) { switch(ret) {
case VFF_CURNEDEST: case VFF_CURNEDEST:
ok(dwCur == 1 + strlen(windir), "Wrong length of buffer for current location: " 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: " ok(dwOut == 1, "Wrong length of buffer for the recommended installation location: "
"got %d(%s) expected 1\n", dwOut, outBuf); "got %d(%s) expected 1\n", dwOut, outBuf);
break; break;
...@@ -97,7 +97,7 @@ static void test_find_file(void) ...@@ -97,7 +97,7 @@ static void test_find_file(void)
switch(ret) { switch(ret) {
case VFF_CURNEDEST: case VFF_CURNEDEST:
ok(dwCur == 1 + strlen(windir), "Wrong length of buffer for current location: " 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: " ok(dwOut == 1, "Wrong length of buffer for the recommended installation location: "
"got %d(%s) expected 1\n", dwOut, outBuf); "got %d(%s) expected 1\n", dwOut, outBuf);
break; break;
...@@ -149,7 +149,7 @@ static void test_find_file(void) ...@@ -149,7 +149,7 @@ static void test_find_file(void)
ret = VerFindFileA(VFFF_ISSHAREDFILE, filename, NULL, appdir, curdir, &dwCur, outBuf, &dwOut); 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); 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: " 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; dwCur=MAX_PATH;
dwOut=MAX_PATH; dwOut=MAX_PATH;
...@@ -158,7 +158,7 @@ static void test_find_file(void) ...@@ -158,7 +158,7 @@ static void test_find_file(void)
ret = VerFindFileA(0, filename, NULL, appdir, curdir, &dwCur, outBuf, &dwOut); 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); 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: " 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);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment