diff options
| author | Brian Potchik <brian@vector35.com> | 2025-06-30 16:40:48 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-06-30 16:40:48 -0400 |
| commit | 77f007b2cc0a01d2135da53f4071fe2024e42da2 (patch) | |
| tree | 8a04402c454b4c8df2dbf380bbdbcdb00b9acca0 /binaryview.cpp | |
| parent | 155eb8ba6700084a8eb36d4d3549171930f950fd (diff) | |
Fix busted stringify_unicode_data python API.
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 66ef0e10..f2b33dc3 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -5530,13 +5530,11 @@ void BinaryView::SetUserGlobalPointerValue(const Confidence<RegisterValue>& valu } -optional<pair<string, BNStringType>> BinaryView::StringifyUnicodeData(Architecture* arch, - const DataBuffer& buffer, bool allowShortStrings) +optional<pair<string, BNStringType>> BinaryView::StringifyUnicodeData(Architecture* arch, const DataBuffer& buffer, bool allowShortStrings) { char* str = nullptr; BNStringType type = AsciiString; - if (!BNStringifyUnicodeData(m_object, arch ? arch->GetObject() : nullptr, buffer.GetBufferObject(), - allowShortStrings, &str, &type)) + if (!BNStringifyUnicodeData(m_object, arch ? arch->GetObject() : nullptr, buffer.GetBufferObject(), allowShortStrings, &str, &type)) return nullopt; string result(str); |
