Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1003 from lioncash/wii-save-import
DolphinWX: Fix Wii save importing
  • Loading branch information
shuffle2 committed Sep 6, 2014
2 parents d0d6f70 + 5b837a1 commit 218adb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 218adb5

Please sign in to comment.