1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Fixup Firmware install

This commit is contained in:
Eladash 2023-11-28 10:45:23 +02:00 committed by Elad Ashkenazi
parent 79465334fe
commit aaf776ddc9

View File

@ -1535,10 +1535,7 @@ void main_window::HandlePupInstallation(const QString& file_path, const QString&
if (update_file_stream->m_file_handler)
{
// Forcefully read all the data
update_file_stream->pop<char>();
update_file_stream->pos = umax;
update_file_stream->pos /= 2; // Avoid internal overflows
update_file_stream->m_file_handler->handle_file_op(*update_file_stream, update_file_stream->pos, 1, nullptr);
update_file_stream->m_file_handler->handle_file_op(*update_file_stream, 0, update_file_stream->get_size(umax), nullptr);
}
fs::file update_file = fs::make_stream(std::move(update_file_stream->data));