Hi! BSTR CStringA::AllocSysString() uses AtoW to convert to a wide string, but then still uses the 'old' length to allocate the memory for the BSTR. This may work most of the time, but can also be too short, depending on the string.
BSTR CStringA::AllocSysString()
I've submitted an SVN update that corrects the issue you've described in CStringA::AllocSysString.
You can download the latest code snapshot from the code section here on SourceForge.
Best regards, David
Nice, thanks!
Log in to post a comment.
I've submitted an SVN update that corrects the issue you've described in CStringA::AllocSysString.
You can download the latest code snapshot from the code section here on SourceForge.
Best regards,
David
Nice, thanks!