1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-11 18:20:26 +09:00

Fix very minor typo (#33423)

Co-authored-by: Ben Rothermel <ben.rothermel@tocabot.io>
This commit is contained in:
tub5 2020-03-10 15:11:02 +00:00 committed by GitHub
parent aa6d1ac74e
commit d2a3709b9e
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1189,7 +1189,7 @@ namespace System
// For pipes that are closing or broken, just stop.
// (E.g. ERROR_NO_DATA ("pipe is being closed") is returned when we write to a console that is closing;
// ERROR_BROKEN_PIPE ("pipe was closed") is returned when stdin was closed, which is mot an error, but EOF.)
// ERROR_BROKEN_PIPE ("pipe was closed") is returned when stdin was closed, which is not an error, but EOF.)
int errorCode = Marshal.GetLastWin32Error();
if (errorCode == Interop.Errors.ERROR_NO_DATA || errorCode == Interop.Errors.ERROR_BROKEN_PIPE)
return Interop.Errors.ERROR_SUCCESS;