Give slightly more infformation in LoadOrThrow
This commit is contained in:
parent
89824bac1c
commit
8abe276829
|
@ -216,7 +216,7 @@ namespace BizHawk.Common
|
|||
public IntPtr LoadOrThrow(string dllToLoad)
|
||||
{
|
||||
var ret = LoadOrZero(dllToLoad);
|
||||
return ret != IntPtr.Zero ? ret : throw new InvalidOperationException($"got null pointer from {nameof(LoadLibraryW)}, {GetErrorMessage()}");
|
||||
return ret != IntPtr.Zero ? ret : throw new InvalidOperationException($"got null pointer from {nameof(LoadLibraryW)} while trying to load {dllToLoad}, {GetErrorMessage()}");
|
||||
}
|
||||
|
||||
public unsafe string GetErrorMessage()
|
||||
|
|
Loading…
Reference in New Issue