Skip to content

Commit

Permalink
maybe Win 7 & 8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik committed Jul 30, 2021
1 parent 30b5768 commit c513ce5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ internal static unsafe (SafeFileHandle.OverlappedValueTaskSource? vts, int error
}
finally
{
if (errorCode != Interop.Errors.ERROR_IO_PENDING)
if (errorCode != Interop.Errors.ERROR_IO_PENDING && errorCode != Interop.Errors.ERROR_SUCCESS)
{
strategy?.OnIncompleteRead(buffer.Length, 0);
}
Expand Down

0 comments on commit c513ce5

Please sign in to comment.