wintrust/tests: Zero-init error array to prevent failures on 64-bit.

Huw Davies huw at codeweavers.com
Fri Jan 20 06:41:37 CST 2017


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/wintrust/tests/softpub.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c
index 9ac15e1..6e7913f 100644
--- a/dlls/wintrust/tests/softpub.c
+++ b/dlls/wintrust/tests/softpub.c
@@ -250,6 +250,8 @@ static void testInitialize(SAFE_PROVIDER_FUNCTIONS *funcs, GUID *actionID)
     if (data.padwTrustStepErrors)
     {
         /* Apparently, cdwTrustStepErrors does not need to be set. */
+        memset(data.padwTrustStepErrors, 0,
+         TRUSTERROR_MAX_STEPS * sizeof(DWORD));
         ret = funcs->pfnInitialize(&data);
         ok(ret == S_OK, "Expected S_OK, got %08x\n", ret);
         data.cdwTrustStepErrors = 1;
-- 
2.7.4




More information about the wine-patches mailing list