Commit fa32d538 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ntdll/tests: Fixed WCHAR overflow.

parent 9d90abe1
......@@ -637,7 +637,7 @@ static void test_RtlDowncaseUnicodeString(void)
UNICODE_STRING result_str;
UNICODE_STRING lower_str;
for (i = 0; i <= 1024; i++) {
for (i = 0; i < 1024; i++) {
ch = (WCHAR) i;
if (ch >= 'A' && ch <= 'Z') {
lower_ch = ch - 'A' + 'a';
......@@ -678,7 +678,6 @@ static void test_RtlDowncaseUnicodeString(void)
case 0x38c: lower_ch = 0x3cc; break;
case 0x38e: lower_ch = 0x3cd; break;
case 0x38f: lower_ch = 0x3ce; break;
case 0x400: lower_ch = 0x0; break;
default: lower_ch = ch; break;
} /* switch */
}
......
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