You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're implementing a function that returns a string to foreign COM callers, you should not deallocate the returned BSTR. Since we can't pass a wio::BStr across the boundary, we'd need some way to extract the pointer and make rust forget about it. I don't see that any existing method would allow that.
The text was updated successfully, but these errors were encountered:
EndilWayfare
changed the title
Should Bstr have an into_raw, some way to purposefully leak?
Should BStr have an into_raw, some way to purposefully leak?
Jul 27, 2021
If you're implementing a function that returns a string to foreign COM callers, you should not deallocate the returned BSTR. Since we can't pass a
wio::BStr
across the boundary, we'd need some way to extract the pointer and make rustforget
about it. I don't see that any existing method would allow that.c.f.
ComPtr
The text was updated successfully, but these errors were encountered: