summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/NewsAggregator/Src/Utils.cpp4
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);
}