Thomas Faller : ntdll/tests: Fix use of uninitialized value.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Oct 15 10:27:59 CDT 2015
Module: wine
Branch: master
Commit: c96684c3b275ad579a296d46ac76ced64654430d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c96684c3b275ad579a296d46ac76ced64654430d
Author: Thomas Faller <tfaller1 at gmx.de>
Date: Wed Oct 14 18:13:33 2015 +0200
ntdll/tests: Fix use of uninitialized value.
Signed-off-by: Thomas Faller <tfaller1 at gmx.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/env.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/tests/env.c b/dlls/ntdll/tests/env.c
index 6bd1530..8989760 100644
--- a/dlls/ntdll/tests/env.c
+++ b/dlls/ntdll/tests/env.c
@@ -111,7 +111,7 @@ static void testQuery(void)
pRtlMultiByteToUnicodeN( bn, sizeof(bn), NULL, test->val, strlen(test->val)+1 );
ok( value.Length == strlen(test->val) * sizeof(WCHAR), "Wrong length %d for %s\n",
value.Length, test->var );
- ok((value.Length == strlen(test->val) * sizeof(WCHAR) && memcmp(bv, bn, test->len*sizeof(WCHAR)) == 0) ||
+ ok((value.Length == strlen(test->val) * sizeof(WCHAR) && memcmp(bv, bn, value.Length) == 0) ||
lstrcmpW(bv, bn) == 0,
"Wrong result for %s/%d\n", test->var, test->len);
ok(bv[test->len] == '@', "Writing too far away in the buffer for %s/%d\n", test->var, test->len);
More information about the wine-cvs
mailing list