Avoid Memory Corruption when Assigning a CComBSTR to a CComVariant's bstrVal Member
AlthoughtheCComBSTR=operatorisoverloadedtomakeacopyofthestring,thisisnotthecasewhenassigningaCComVariant'sbstrValmembertoaCComBSTR.Inthiscase,youneedtomakeanexplicitcopy:CComVariantbstrTarget;CComBSTR