(In reply to Sotaro Ikeda [:sotaro] from comment #3) > It seems that INVALID_HANDLE_VALUE is not used for invalid file descriptor It seemed to be changed by Bug 1534780.
Bug 1668706 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Sotaro Ikeda [:sotaro] from comment #3) > It seems that INVALID_HANDLE_VALUE is not used for invalid file descriptor on Windows. nullptr is used on current gecko. - https://searchfox.org/mozilla-central/rev/222e4f64b769413ac1a1991d2397b13a0acb5d9d/mfbt/UniquePtrExtensions.h#145 It seemed to be changed by Bug 1534780.