Module: wine Branch: master Commit: fa32d538107551f4fe5e08a1db172c2259aff615 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa32d538107551f4fe5e08a1db...
Author: Marcus Meissner meissner@suse.de Date: Thu Feb 8 17:15:50 2007 +0100
ntdll/tests: Fixed WCHAR overflow.
---
dlls/ntdll/tests/rtlstr.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c index 5c70eda..3d85aff 100644 --- a/dlls/ntdll/tests/rtlstr.c +++ b/dlls/ntdll/tests/rtlstr.c @@ -637,7 +637,7 @@ static void test_RtlDowncaseUnicodeStrin 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_RtlDowncaseUnicodeStrin 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 */ }