1
0
Fork 0

DBG: Fix potential deadlock

This commit is contained in:
Nukem 2015-06-20 18:53:33 -04:00
parent ab93b41c91
commit f33f09ff4f
1 changed files with 3 additions and 0 deletions

View File

@ -25,7 +25,10 @@ bool BookmarkSet(uint Address, bool Manual)
EXCLUSIVE_ACQUIRE(LockBookmarks);
if(!bookmarks.insert(std::make_pair(ModHashFromAddr(Address), bookmark)).second)
{
EXCLUSIVE_RELEASE();
return BookmarkDelete(Address);
}
return true;
}