Implement another error code found on windows.

Closes #8811
auto merge of #10093 : alexcrichton/rust/issue-8811, r=pcwalton

Closes #8811