mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(util): convert void pointer to StreamRecord pointer when trying to read
This commit is contained in:
parent
70642dec21
commit
ac395c287d
1 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,8 @@ int32_t SFile::Read(SFile* file, void* buffer, size_t bytestoread, size_t* bytes
|
|||
switch (file->m_type) {
|
||||
case SFILE_PLAIN:
|
||||
{
|
||||
Blizzard::File::Read(file->m_stream, buffer, bytestoread, bytesread);
|
||||
auto stream = reinterpret_cast<Blizzard::File::StreamRecord*>(file->m_handle);
|
||||
Blizzard::File::Read(m_stream, buffer, bytestoread, bytesread);
|
||||
return 1;
|
||||
}
|
||||
case SFILE_PAQ:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue