`ReadFile` may fail and when it fails we need to convert its error to our error code.