Commit a799d416 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

ntdll: Don't use toupper in RtlIsNameLegalDOS8Dot3 tests.

parent 073bb1d0
......@@ -240,14 +240,13 @@ static void test_RtlIsNameLegalDOS8Dot3(void)
ok( spaces == test->spaces, "Wrong spaces value %d/%d for '%s'\n", spaces, test->spaces, test->path );
if (strlen(test->path) <= 12)
{
STRING test_str;
char str[13];
int i;
strcpy( str, test->path );
for (i = 0; str[i]; i++) str[i] = toupper(str[i]);
ok( oem_ret.Length == strlen(test->path), "Wrong length %d/%d for '%s'\n",
oem_ret.Length, lstrlenA(test->path), test->path );
ok( !memcmp( oem_ret.Buffer, str, oem_ret.Length ),
"Wrong string '%.*s'/'%s'\n", oem_ret.Length, oem_ret.Buffer, str );
RtlInitString( &test_str, str );
RtlUpperString( &test_str, &test_str );
ok( !RtlCompareString(&oem_ret, &test_str, FALSE),
"Wrong string '%.*s'/'%s'\n", oem_ret.Length, oem_ret.Buffer, test->path );
}
}
}
......
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