Merge pull request #418 from agnat/fix_get_file_size_bug

[Bugfix] Actually invoke the user-supplied function instead of subtracting from a pointer...
This commit is contained in:
Syoyo Fujita 2023-04-26 19:28:58 +09:00 committed by GitHub
commit 350c296802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2425,7 +2425,7 @@ static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err,
size_t file_size{0};
std::string _err;
bool ok = fs-GetFileSizeInBytes(&file_size, &_err, filepath, fs->user_data);
bool ok = fs->GetFileSizeInBytes(&file_size, &_err, filepath, fs->user_data);
if (!ok) {
if (_err.size()) {
if (failMsgOut) {