Windows: Ensure consistency of error code mapping