[fnd] Fix type in WriteFile().

This commit is contained in:
jakcron 2017-07-06 01:36:59 +10:00
parent 79e2ef5fd2
commit 70145ce354

View file

@ -40,7 +40,7 @@ void FileIO::ReadFile(const std::string& path, MemoryBlob & blob)
void FileIO::WriteFile(const std::string& path, const MemoryBlob & blob) void FileIO::WriteFile(const std::string& path, const MemoryBlob & blob)
{ {
WriteFile(blob.data(), blob.size()); WriteFile(path, blob.data(), blob.size());
} }
void fnd::FileIO::WriteFile(const std::string & path, const u8 * data, size_t len) void fnd::FileIO::WriteFile(const std::string & path, const u8 * data, size_t len)
@ -63,7 +63,7 @@ void fnd::FileIO::WriteFile(const std::string & path, const u8 * data, size_t le
if (filesz) if (filesz)
{ {
fwrite(blob.data() + filepos, 1, filesz, fp); fwrite(data + filepos, 1, filesz, fp);
} }
fclose(fp); fclose(fp);