Official eMule-Board: Fix To Searchlistctrl.cpp - Official eMule-Board

Jump to content


Page 1 of 1

Fix To Searchlistctrl.cpp index check...

#1 User is offline   Avi-3k 

  • hebMule [retired] dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1127
  • Joined: 25-June 03

Posted 05 October 2005 - 10:04 AM

in CSearchListCtrl::UpdateSearch() the code is missing
a check to verify the index is valid (different from -1)

Quote

...
void CSearchListCtrl::UpdateSearch(CSearchFile* toupdate)
{
  ...
  int index = FindItem(&find);
  {
    Update(index);
  }
}
...


the fix

Quote

...
void CSearchListCtrl::UpdateSearch(CSearchFile* toupdate)
{
...
  int index = FindItem(&find);
  if (index != -1) // Avi3k: fix index check
  {
    Update(index);
  }
}
...


Avi3k

This post has been edited by Avi-3k: 05 October 2005 - 10:04 AM

retired developer of hebMule and eMule Skinner...
hebMule site and topic.
hebMule2 unique features: AntiLeech, AntiVirus, Fake Check, ServerFilter, WebSearches, Export Searches, Relative Priority, ModID and much much more...

eMule Skinner is an application to create/edit skins for eMule,
it's multilingual, supports mods, easy-to-use design, integrates to hebMule & Windows and lots more...

code fixes/improvements: #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11 (to check/verify: #12, #13).
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users