diff --git a/sdk/lib/atl/atlcomcli.h b/sdk/lib/atl/atlcomcli.h index 9c19e3371c4..20151dba9f6 100644 --- a/sdk/lib/atl/atlcomcli.h +++ b/sdk/lib/atl/atlcomcli.h @@ -301,6 +301,12 @@ public: return *this; } + void Attach(BSTR bstr) + { + ::SysFreeString(m_str); + m_str = bstr; + } + BSTR Detach() { BSTR str = m_str;