Paul Vriens : ntdll: Remove unused variables.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 21 08:14:55 CST 2006


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Tue Nov 21 09:24:18 2006 +0100

ntdll: Remove unused variables.

---

 dlls/ntdll/tests/string.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/dlls/ntdll/tests/string.c b/dlls/ntdll/tests/string.c
index 0db37d8..0db96d6 100644
--- a/dlls/ntdll/tests/string.c
+++ b/dlls/ntdll/tests/string.c
@@ -391,8 +391,6 @@ static void one_ultow_test(int test_num,
 static void test_ulongtow(void)
 {
     int test_num;
-    int pos;
-    WCHAR expected_wstr[LARGE_STRI_BUFFER_LENGTH + 1];
     LPWSTR result;
 
     for (test_num = 0; test_num < NB_ULONG2STR; test_num++) {
@@ -407,11 +405,6 @@ static void test_ulongtow(void)
 	} /* if */
     } /* for */
 
-    for (pos = 0; pos < LARGE_STRI_BUFFER_LENGTH; pos++) {
-	expected_wstr[pos] = ulong2str[0].Buffer[pos];
-    } /* for */
-    expected_wstr[LARGE_STRI_BUFFER_LENGTH] = '\0';
-
     if (0) {
         /* Crashes on XP and W2K3 */
         result = p_itow(ulong2str[0].value, NULL, 10);
@@ -420,11 +413,6 @@ static void test_ulongtow(void)
            ulong2str[0].value, result);
     }
 
-    for (pos = 0; pos < LARGE_STRI_BUFFER_LENGTH; pos++) {
-	expected_wstr[pos] = ulong2str[0].Buffer[pos];
-    } /* for */
-    expected_wstr[LARGE_STRI_BUFFER_LENGTH] = '\0';
-
     if (0) {
         /* Crashes on XP and W2K3 */
         result = p_ltow(ulong2str[0].value, NULL, 10);
@@ -433,11 +421,6 @@ static void test_ulongtow(void)
            ulong2str[0].value, result);
     }
 
-    for (pos = 0; pos < LARGE_STRI_BUFFER_LENGTH; pos++) {
-	expected_wstr[pos] = ulong2str[0].Buffer[pos];
-    } /* for */
-    expected_wstr[LARGE_STRI_BUFFER_LENGTH] = '\0';
-
     if (0) {
         /* Crashes on XP and W2K3 */
         result = p_ultow(ulong2str[0].value, NULL, 10);




More information about the wine-cvs mailing list