From b3131672757cb870acd3ed6a0d094ba148e95b39 Mon Sep 17 00:00:00 2001 From: dB Date: Mon, 16 Mar 2015 11:41:09 -0400 Subject: [PATCH] Fix #409: crash in Secur32#testEnumerateSecurityPackages. --- .../platform/test/com/sun/jna/platform/win32/Secur32Test.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/platform/test/com/sun/jna/platform/win32/Secur32Test.java b/contrib/platform/test/com/sun/jna/platform/win32/Secur32Test.java index 2af202aa52..85a6b9d1ef 100644 --- a/contrib/platform/test/com/sun/jna/platform/win32/Secur32Test.java +++ b/contrib/platform/test/com/sun/jna/platform/win32/Secur32Test.java @@ -252,9 +252,10 @@ public void testEnumerateSecurityPackages() { for(SecPkgInfo.ByReference packageInfo : packagesInfo) { assertTrue(packageInfo.Name.length() > 0); assertTrue(packageInfo.Comment.length() >= 0); + System.out.println(packageInfo.Name); } assertEquals(W32Errors.SEC_E_OK, Secur32.INSTANCE.FreeContextBuffer( - pPackageInfo.getPointer())); + pPackageInfo.pPkgInfo.getPointer())); } public void testQuerySecurityContextToken() {