mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
decompiler-cpp: Open sla files as 'binary'
Compressed files need to be opened as binaries when reading. Fixes opening sla files on Windows.
This commit is contained in:
parent
2a7897c366
commit
e18b424b02
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ void Sleigh::initialize(DocumentStorage &store)
|
|||
if (el == (const Element *)0)
|
||||
throw LowlevelError("Could not find sleigh tag");
|
||||
sla::FormatDecode decoder(this);
|
||||
ifstream s(el->getContent());
|
||||
ifstream s(el->getContent(), std::ios_base::binary);
|
||||
if (!s)
|
||||
throw LowlevelError("Could not open .sla file: " + el->getContent());
|
||||
decoder.ingestStream(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue