More migrations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user