More migrations

This commit is contained in:
2024-07-13 15:19:51 +02:00
parent 5e30d62651
commit eec290ae8f
2 changed files with 3 additions and 10 deletions
@@ -190,7 +190,7 @@ public partial class SerialPort : IDisposable
private void InternalClose()
{
Win32Com.CancelIo(_hPort.DangerousGetHandle());
PInvoke.CancelIo(_hPort);
if (_rxThread != null)
{
_rxThread.Abort();
@@ -542,7 +542,7 @@ public partial class SerialPort : IDisposable
{
if (Marshal.GetLastWin32Error() == (int)WIN32_ERROR.ERROR_IO_PENDING)
{
Win32Com.CancelIo(_hPort.DangerousGetHandle());
PInvoke.CancelIo(_hPort);
gotBytes = 0;
}
else