Fixed the issue that old StringIndex results remain if the number of RegExp results is less than StringIndex.

This commit is contained in:
spx 2010-08-10 10:51:19 +00:00
parent 22b1e55438
commit ab04c130eb

View File

@ -584,6 +584,11 @@ void ParseData(UrlData* urlData, LPCSTR parseData)
else else
{ {
Log(L"WebParser: Not enough substrings!"); Log(L"WebParser: Not enough substrings!");
// Clear the old result
EnterCriticalSection(&g_CriticalSection);
((*i).second)->resultString.clear();
LeaveCriticalSection(&g_CriticalSection);
} }
} }
} }