| Index: src/shared/MsHTMLUtils.cpp |
| =================================================================== |
| --- a/src/shared/MsHTMLUtils.cpp |
| +++ b/src/shared/MsHTMLUtils.cpp |
| @@ -18,7 +18,7 @@ |
| #include "MsHTMLUtils.h" |
| GetHtmlElementAttributeResult GetHtmlElementAttribute(IHTMLElement& htmlElement, |
| - const ATL::CComBSTR& attributeName) |
| + const std::wstring& attributeName) |
| { |
| GetHtmlElementAttributeResult retValue; |
| ATL::CComVariant vAttr; |
| @@ -28,7 +28,8 @@ |
| return retValue; |
| } |
| ATL::CComPtr<IHTMLDOMAttribute> attributeNode; |
| - if (FAILED(htmlElement4->getAttributeNode(attributeName, &attributeNode)) || !attributeNode) |
| + ATL::CComBSTR attributeNameArg(attributeName.length(), attributeName.c_str()); |
| + if (FAILED(htmlElement4->getAttributeNode(attributeNameArg, &attributeNode)) || !attributeNode) |
| { |
| return retValue; |
| } |