Removed error handling from MoveableHGlobalMemoryMethods.FreeMem

pull/363/head
David Hall 2023-01-05 10:26:00 -07:00
parent 06c7284269
commit 03ef05b415
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ namespace Vanara.PInvoke
/// <summary>Frees the memory associated with a handle.</summary>
/// <param name="hMem">A memory handle.</param>
public override void FreeMem(IntPtr hMem) => Win32Error.ThrowLastErrorIfNull((IntPtr)GlobalFree(hMem));
public override void FreeMem(IntPtr hMem) => GlobalFree(hMem);
/// <summary>Locks the memory of a specified handle and gets a pointer to it.</summary>
/// <param name="hMem">A memory handle.</param>