utf8_helper.cpp
changeset 39 6fc5cc7a167c
parent 38 d314ed57180c
child 40 dfb59114debe
     1.1 --- a/utf8_helper.cpp	Sun May 31 18:26:37 2015 +0200
     1.2 +++ b/utf8_helper.cpp	Sun May 31 19:31:19 2015 +0200
     1.3 @@ -75,7 +75,8 @@
     1.4  
     1.5          _bstr_t utf16_bstr(string str)
     1.6          {
     1.7 -            return _bstr_t(utf16_string(str).c_str());
     1.8 +            wstring wstr = utf16_string(str);
     1.9 +            return _bstr_t(wstr.c_str());
    1.10          }
    1.11  
    1.12          CComSafeArray<BSTR> string_array(const ::stringlist_t *stringlist)