[Git][ghc/ghc][master] winio: fixed more data error.
Marge Bot
gitlab at gitlab.haskell.org
Fri Oct 9 12:51:36 UTC 2020
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
dfaef1ca by Tamar Christina at 2020-10-09T08:51:30-04:00
winio: fixed more data error.
- - - - -
1 changed file:
- libraries/base/GHC/IO/Windows/Handle.hsc
Changes:
=====================================
libraries/base/GHC/IO/Windows/Handle.hsc
=====================================
@@ -437,7 +437,7 @@ hwndRead hwnd ptr offset bytes
| err == #{const STATUS_END_OF_FILE} = Mgr.ioSuccess 0
| err == #{const ERROR_BROKEN_PIPE} = Mgr.ioSuccess 0
| err == #{const STATUS_PIPE_BROKEN} = Mgr.ioSuccess 0
- | err == #{const ERROR_NO_MORE_ITEMS} = Mgr.ioSuccess 0
+ | err == #{const ERROR_NO_MORE_ITEMS} = Mgr.ioSuccess $ fromIntegral dwBytes
| err == #{const ERROR_MORE_DATA} = Mgr.ioSuccess $ fromIntegral dwBytes
| otherwise = Mgr.ioFailed err
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dfaef1cae7a4a0cb8783933274dae7f39d7165a0
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dfaef1cae7a4a0cb8783933274dae7f39d7165a0
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201009/6cdced5c/attachment.html>
More information about the ghc-commits
mailing list