Skip to content
Snippets Groups Projects
Unverified Commit 2562fe4a authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #1170 from lioncash/ret

file_util: Correct return value in early exit of ReadFileToString()
parents 62edc015 c74b7ee2
No related branches found
No related tags found
No related merge requests found
......@@ -764,7 +764,7 @@ size_t ReadFileToString(bool text_file, const char* filename, std::string& str)
IOFile file(filename, text_file ? "r" : "rb");
if (!file.IsOpen())
return false;
return 0;
str.resize(static_cast<u32>(file.GetSize()));
return file.ReadArray(&str[0], str.size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment