mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-08 15:39:55 +03:00
fix(util): convert void pointer to StreamRecord pointer when trying to read
This commit is contained in:
1 parent
70642dec21
commit
ac395c287d
1 file changed
+2
-1
+2
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user