1
0
Fork 0

Small cleanup

This commit is contained in:
Nukem 2015-03-18 16:51:36 -04:00
parent 31f816afd1
commit 9d03839918
4 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ bool BookmarkSet(uint Address, bool Manual)
EXCLUSIVE_ACQUIRE(LockBookmarks);
if(!bookmarks.insert(std::make_pair(ModHashFromAddr(Address), bookmark)).second)
return BookmarkDel(Address);
return BookmarkDelete(Address);
return true;
}
@ -42,7 +42,7 @@ bool BookmarkGet(uint Address)
return (bookmarks.count(ModHashFromAddr(Address)) > 0);
}
bool BookmarkDel(uint Address)
bool BookmarkDelete(uint Address)
{
// CHECK: Export call
if(!DbgIsDebugging())
@ -198,5 +198,4 @@ void BookmarkClear()
{
EXCLUSIVE_ACQUIRE(LockBookmarks);
bookmarks.clear();
EXCLUSIVE_RELEASE();
}

View File

@ -11,7 +11,7 @@ struct BOOKMARKSINFO
bool BookmarkSet(uint Address, bool Manual);
bool BookmarkGet(uint Address);
bool BookmarkDel(uint Address);
bool BookmarkDelete(uint Address);
void BookmarkDelRange(uint Start, uint End);
void BookmarkCacheSave(JSON Root);
void BookmarkCacheLoad(JSON Root);

View File

@ -392,5 +392,4 @@ void BpClear()
{
EXCLUSIVE_ACQUIRE(LockBreakpoints);
breakpoints.clear();
EXCLUSIVE_RELEASE();
}

View File

@ -54,7 +54,9 @@ bool ModLoad(uint base, uint size, const char* fullpath)
// Get the entry point
info.entry = GetPE32DataFromMappedFile(info.FileMapVA, 0, UE_OEP) + info.base;
// Enumerate all PE sections
int sectionCount = (int)GetPE32DataFromMappedFile(info.FileMapVA, 0, UE_SECTIONNUMBER);
for(int i = 0; i < sectionCount; i++)
{
MODSECTIONINFO curSection;