CommonHelpers: Fail if cannot load inpoutx64.dll

This commit is contained in:
Kamil Trzciński 2023-12-14 19:07:00 +01:00
parent 44cdaef37c
commit a86f2a49e1

View file

@ -20,6 +20,8 @@ namespace CommonHelpers
public InpOut()
{
libraryHandle = LoadLibrary(LibraryName);
if (libraryHandle == IntPtr.Zero)
throw new ArgumentException("Failed to load " + LibraryName);
try
{
var addr = GetProcAddress(libraryHandle, "MapPhysToLin");