diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-04 20:24:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-04 20:24:55 +0000 |
commit | 5e64b724fd1b4b889f78c29d1583c886d4fbd818 (patch) | |
tree | cc9848468dfcdd1701f798e7c6219246a300d0ed /protocols/NewsAggregator/Src | |
parent | a415ad948e11a95ece8d14bd12193517dd17fd0c (diff) |
fix for crash inside MSHTML
git-svn-id: http://svn.miranda-ng.org/main/trunk@1537 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/NewsAggregator/Src')
-rw-r--r-- | protocols/NewsAggregator/Src/Utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/NewsAggregator/Src/Utils.cpp b/protocols/NewsAggregator/Src/Utils.cpp index 107f589ad8..32ce78fcf9 100644 --- a/protocols/NewsAggregator/Src/Utils.cpp +++ b/protocols/NewsAggregator/Src/Utils.cpp @@ -711,9 +711,9 @@ HRESULT TestDocumentText(IHTMLDocument3* pHtmlDoc, BSTR& message) VOID ClearText(TCHAR*& message)
{
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
- BSTR bstrHtml = SysAllocString(message), bstrRes = NULL;
+ BSTR bstrHtml = SysAllocString(message), bstrRes = SysAllocString(L"");
HRESULT hr = TestMarkupServices(bstrHtml, &TestDocumentText, bstrRes);
- if (bstrRes) {
+ if ( SUCCEEDED(hr)) {
replaceStrT(message, bstrRes);
SysFreeString(bstrRes);
}
|