Permalink
Browse files

[loadfile] no need for reusing inputBuffSize for return value

  • Loading branch information...
Jonathan Marshall authored and Karlson2k committed May 13, 2013
1 parent 80189e9 commit 6e21f81d5a070c9099f37b15cd57fc3131752dfd
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/utils/FileUtils.cpp
View
@@ -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;
}

0 comments on commit 6e21f81

Please sign in to comment.