From a2b3cdc393b763dba3f1ab407888592a34ec36ba Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sun, 4 Oct 2015 12:24:05 +0200 Subject: [PATCH] FifoDataFile: Revert PadFile changes from 4.0-1127. Fixes #9006. --- Source/Core/Core/FifoPlayer/FifoDataFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/FifoPlayer/FifoDataFile.cpp b/Source/Core/Core/FifoPlayer/FifoDataFile.cpp index 1c9b029daf..0168303bf2 100644 --- a/Source/Core/Core/FifoPlayer/FifoDataFile.cpp +++ b/Source/Core/Core/FifoPlayer/FifoDataFile.cpp @@ -202,8 +202,8 @@ FifoDataFile* FifoDataFile::Load(const std::string &filename, bool flagsOnly) void FifoDataFile::PadFile(size_t numBytes, File::IOFile& file) { - const u8 zero = 0; - fwrite(&zero, sizeof(zero), numBytes, file.GetHandle()); + for (size_t i = 0; i < numBytes; ++i) + fputc(0, file.GetHandle()); } void FifoDataFile::SetFlag(u32 flag, bool set)