Fix `ReadCertFile` by opening as binary file

This commit is contained in:
Starsam80 2017-03-11 23:42:54 -07:00
parent b1bd231421
commit 0f44d22db5
No known key found for this signature in database
GPG Key ID: 4E48BB48BA7E9026
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ constexpr std::array<u8, 32> s_root_ca_hash = {{0xc5, 0xb0, 0xf8, 0xdf, 0xce, 0x
static std::vector<u8> ReadCertFile(const std::string& path, const std::array<u8, 32>& correct_hash)
{
File::IOFile file(path, "r");
File::IOFile file(path, "rb");
std::vector<u8> bytes(file.GetSize());
if (!file.ReadBytes(bytes.data(), bytes.size()))
{