Some of the issues were reported earlier but I cannot find the corresponding threads anymore and somehow they didn't get read or just ignored... anyways, I think it'd be good to fix them if I don't mix things up
First of all:
Indexed.cpp @ Clean():
m_uTotalIndexKeyword = uTotalKey;
Is in fact wrong because we also count the (possibly) removed entries... thus, the correct code would be:
m_uTotalIndexKeyword = uTotalKey-uRemovedKey;
Indexed.cpp @ AddNotes():
Is most probably wrong and should be
because we are adding NOTES in this function (note that this code is used twice).
Next in Search.cpp @ StorePacket():
I suppose that this:
as the comment supposes... also appears twice...