diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/file_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index b30a67ff9..baa721481 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -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()); |