mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Building with older libyara versions
This commit is contained in:
@@ -120,7 +120,7 @@ namespace hex::plugin::yara {
|
||||
&resultContext
|
||||
);
|
||||
|
||||
if (yr_compiler_add_bytes(compiler, m_content.c_str(), m_content.size(), nullptr) != ERROR_SUCCESS) {
|
||||
if (yr_compiler_add_string(compiler, m_content.c_str(), nullptr) != ERROR_SUCCESS) {
|
||||
std::string errorMessage(0xFFFF, '\x00');
|
||||
yr_compiler_get_error_message(compiler, errorMessage.data(), errorMessage.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user