SEBWIN-510: Attempt to fix interop issue.

This commit is contained in:
Damian Büchel 2022-07-20 12:30:01 +02:00
parent 3e18a6ce41
commit b88e26b3ab

View file

@ -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();