mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[ATL] Add CComBSTR.Attach
This commit is contained in:
parent
9187a81538
commit
6c92d5c14a
1 changed files with 6 additions and 0 deletions
|
@ -301,6 +301,12 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
void Attach(BSTR bstr)
|
||||
{
|
||||
::SysFreeString(m_str);
|
||||
m_str = bstr;
|
||||
}
|
||||
|
||||
BSTR Detach()
|
||||
{
|
||||
BSTR str = m_str;
|
||||
|
|
Loading…
Reference in a new issue