[PATCH] wintrust/tests: Initialize structure passed to WintrustLoadFunctionPointers

Alex Henrie alexhenrie24 at gmail.com
Sun Jan 14 22:26:10 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
In addition to making the tests valid, this fixes an intermittent crash
on Windows 10 when funcs.psUIpfns happens to be initialized with
garbage.

 dlls/wintrust/tests/register.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wintrust/tests/register.c b/dlls/wintrust/tests/register.c
index 42c5de68b3..32c8782749 100644
--- a/dlls/wintrust/tests/register.c
+++ b/dlls/wintrust/tests/register.c
@@ -224,7 +224,7 @@ static void test_AddDefaultForUsage(void)
 static void test_LoadFunctionPointers(void)
 {
     BOOL ret;
-    CRYPT_PROVIDER_FUNCTIONS funcs;
+    CRYPT_PROVIDER_FUNCTIONS funcs = {0};
     GUID action = WINTRUST_ACTION_GENERIC_VERIFY_V2;
 
     if (!pWintrustLoadFunctionPointers)
-- 
2.15.1




More information about the wine-devel mailing list