From ab04c130ebfb4a476b7d2a475fa549e46ae31536 Mon Sep 17 00:00:00 2001 From: spx Date: Tue, 10 Aug 2010 10:51:19 +0000 Subject: [PATCH] Fixed the issue that old StringIndex results remain if the number of RegExp results is less than StringIndex. --- Plugins/PluginWebParser/WebParser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Plugins/PluginWebParser/WebParser.cpp b/Plugins/PluginWebParser/WebParser.cpp index 55253017..196720c7 100644 --- a/Plugins/PluginWebParser/WebParser.cpp +++ b/Plugins/PluginWebParser/WebParser.cpp @@ -584,6 +584,11 @@ void ParseData(UrlData* urlData, LPCSTR parseData) else { Log(L"WebParser: Not enough substrings!"); + + // Clear the old result + EnterCriticalSection(&g_CriticalSection); + ((*i).second)->resultString.clear(); + LeaveCriticalSection(&g_CriticalSection); } } }