Marcus Meissner : ntdll/tests: Fixed WCHAR overflow.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 13 11:07:52 CST 2007


Module: wine
Branch: master
Commit: fa32d538107551f4fe5e08a1db172c2259aff615
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fa32d538107551f4fe5e08a1db172c2259aff615

Author: Marcus Meissner <meissner at 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 */
 	}




More information about the wine-cvs mailing list