From b88e26b3ab229df7ba6cd15757717af11c00f3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Wed, 20 Jul 2022 12:30:01 +0200 Subject: [PATCH] SEBWIN-510: Attempt to fix interop issue. --- SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs b/SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs index 9cbcfb05..a3bfa030 100644 --- a/SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs +++ b/SafeExamBrowser.Configuration/Integrity/IntegrityModule.cs @@ -74,7 +74,7 @@ namespace SafeExamBrowser.Configuration.Integrity [DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)] [return: MarshalAs(UnmanagedType.BStr)] - private static extern string CalculateBrowserExamKey(string configurationKey, string salt); + private static extern string CalculateBrowserExamKey([MarshalAs(UnmanagedType.LPStr)] string configurationKey, [MarshalAs(UnmanagedType.LPStr)] string salt); [DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)] private static extern bool VerifyCodeSignature();