Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[loadfile] no need for reusing inputBuffSize for return value

  • Loading branch information...
commit 6e21f81d5a070c9099f37b15cd57fc3131752dfd 1 parent 80189e9
Jonathan Marshall authored committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/utils/FileUtils.cpp
View
6 xbmc/utils/FileUtils.cpp
@@ -200,13 +200,13 @@ unsigned int CFileUtils::LoadFile(const std::string &filename, void* &outputBuff
if (!read)
break;
}
- inputBuffSize = total_read;
+
file.Close();
- if (inputBuffSize == 0)
+ if (total_read == 0)
return 0;
outputBuffer = (void *) inputBuff;
- return inputBuffSize;
+ return total_read;
}
Please sign in to comment.
Something went wrong with that request. Please try again.