mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 21:50:11 +02:00
Work around incorrect wchar_t text serialization
`std::char_traits<wchar_t>::length()` would return the wrong length for a wide string under Wine, and thus also for `String128`. This would cause parts of the strings to get cut off. As a workaround we'll just serialize the entire container including all null bytes at the end.
This commit is contained in:
@@ -188,7 +188,7 @@ namespace Steinberg {
|
||||
namespace Vst {
|
||||
template <typename S>
|
||||
void serialize(S& s, IContextMenuItem& item) {
|
||||
s.text2b(item.name);
|
||||
s.container2b(item.name);
|
||||
s.value4b(item.tag);
|
||||
s.value4b(item.flags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user