[ntdll 2/5] Remove unused variables
Paul Vriens
paul.vriens.wine at gmail.com
Tue Nov 21 02:24:18 CST 2006
Hi,
expected_wstr was not used. The real tests are performed by the one_* tests in
the beginning. The rest of the tests in test_ulongtow are NULL checks.
Changelog
Remove unused variables
Cheers,
Paul.
---
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);
--
1.4.4
More information about the wine-patches
mailing list