Merge pull request #1003 from lioncash/wii-save-import

DolphinWX: Fix Wii save importing
This commit is contained in:
shuffle2 2014-09-06 11:52:33 -07:00
commit 218adb5515
1 changed files with 3 additions and 3 deletions

View File

@ -354,9 +354,9 @@ void CWiiSaveCrypted::ImportWiiSaveFiles()
{
file_size = Common::swap32(file_hdr_tmp.size);
u32 file_size_rounded = ROUND_UP(file_size, BLOCK_SZ);
std::vector<u8> file_data, file_data_enc;
file_data.reserve(file_size_rounded);
file_data_enc.reserve(file_size_rounded);
std::vector<u8> file_data(file_size_rounded);
std::vector<u8> file_data_enc(file_size_rounded);
if (!data_file.ReadBytes(&file_data_enc[0], file_size_rounded))
{
ERROR_LOG(CONSOLE, "Failed to read data from file %d", i);