mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +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;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Attach(BSTR bstr)
|
||||||
|
{
|
||||||
|
::SysFreeString(m_str);
|
||||||
|
m_str = bstr;
|
||||||
|
}
|
||||||
|
|
||||||
BSTR Detach()
|
BSTR Detach()
|
||||||
{
|
{
|
||||||
BSTR str = m_str;
|
BSTR str = m_str;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue