Small cleanup
This commit is contained in:
parent
31f816afd1
commit
9d03839918
|
@ -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();
|
||||
}
|
|
@ -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);
|
||||
|
|
|
@ -392,5 +392,4 @@ void BpClear()
|
|||
{
|
||||
EXCLUSIVE_ACQUIRE(LockBreakpoints);
|
||||
breakpoints.clear();
|
||||
EXCLUSIVE_RELEASE();
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue