[PATCH] msvcp140/tests: Avoid filling value truncation in memset (Coverity)
Nikolay Sivov
nsivov at codeweavers.com
Fri May 19 07:30:17 CDT 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/msvcp140/tests/msvcp140.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcp140/tests/msvcp140.c b/dlls/msvcp140/tests/msvcp140.c
index 1419669bda..c9646135e1 100644
--- a/dlls/msvcp140/tests/msvcp140.c
+++ b/dlls/msvcp140/tests/msvcp140.c
@@ -259,7 +259,7 @@ static void test_task_continuation_context(void)
{
task_continuation_context tcc;
- memset(&tcc, 0xdead, sizeof(tcc));
+ memset(&tcc, 0xff, sizeof(tcc));
call_func1(p_task_continuation_context_ctor, &tcc);
ok(!tcc.unk0, "tcc.unk0 != NULL (%p)\n", tcc.unk0);
ok(!tcc.unk1, "tcc.unk1 != 0 (%x)\n", tcc.unk1);
--
2.11.0
More information about the wine-patches
mailing list