kernel32/tests: Avoid unneeded strlen*() calls.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
54f1d8e750
commit
d504332b1c
|
@ -130,7 +130,7 @@ static void test_ValidPathA(const CHAR *curdir, const CHAR *subdir, const CHAR *
|
|||
ok(! HAS_TRAIL_SLASH_A(curdirshort),
|
||||
"%s: GetShortPathNameA should not have a trailing \\\n",errstr);
|
||||
/* build relative and absolute paths from inputs */
|
||||
if(lstrlenA(subdir)) {
|
||||
if(*subdir) {
|
||||
sprintf(subpath,"%s\\%s",subdir,filename);
|
||||
} else {
|
||||
lstrcpyA(subpath,filename);
|
||||
|
|
|
@ -83,7 +83,7 @@ static void test_query_dos_deviceA(void)
|
|||
if (ret && GetLastError() != ERROR_INSUFFICIENT_BUFFER) {
|
||||
p = buffer;
|
||||
for (;;) {
|
||||
if (!strlen(p)) break;
|
||||
if (!*p) break;
|
||||
ret2 = QueryDosDeviceA( p, buffer2, sizeof(buffer2) );
|
||||
ok(ret2, "QueryDosDeviceA failed to return current mapping for %s, last error %u\n", p, GetLastError());
|
||||
p += strlen(p) + 1;
|
||||
|
|
Loading…
Reference in New Issue