[PATCH] schannel/tests: Avoid dereferencing a null function pointer
Alex Henrie
alexhenrie24 at gmail.com
Sun Jan 14 22:26:09 CST 2018
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
Fixes a test crash on my Windows 10 machine. We have seen the same crash
at least once on the test VMs too.
dlls/schannel/tests/main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/schannel/tests/main.c b/dlls/schannel/tests/main.c
index 4240dd76cb..fb350d5e62 100644
--- a/dlls/schannel/tests/main.c
+++ b/dlls/schannel/tests/main.c
@@ -213,6 +213,11 @@ static void testGetInfo(void)
pTables = getNextSecPkgTable(pTables, Version);
if (!pTables)
return;
+ if (!pTables->GetInfo)
+ {
+ win_skip("GetInfo function missing\n");
+ return;
+ }
status = pTables->GetInfo(&PackageInfo);
ok(status == STATUS_SUCCESS ||
status == SEC_E_UNSUPPORTED_FUNCTION, /* win2k3 */
--
2.15.1
More information about the wine-devel
mailing list