Skip to content

Commit 558a4e8

Browse files
committed
Fixing sys_string_bstr converting construction
1 parent dcd4e9b commit 558a4e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/inc/sys_string/impl/platforms/windows_bstr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ namespace sysstr::util
347347
using converter = utf_converter<utf_encoding_of<Char>, utf16>;
348348
UINT our_size = ensure_valid_size(converter::converted_length(str, str + length));
349349
char16_t * data = m_data.init(our_size);
350-
converter::convert(str, str + our_size, data);
350+
converter::convert(str, str + length, data);
351351
}
352352
}
353353

0 commit comments

Comments
 (0)