mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-28 02:45:42 -04:00
CPU/CodeCache: Fix assertion failure when patching in double branch
This commit is contained in:
parent
b38e4b8ba7
commit
a894b295b6
@ -652,12 +652,13 @@ void FlushBlock(CodeBlock* block)
|
||||
#endif
|
||||
|
||||
// if it's been invalidated it won't be in the page map
|
||||
if (block->invalidated)
|
||||
if (!block->invalidated)
|
||||
RemoveBlockFromPageMap(block);
|
||||
|
||||
UnlinkBlock(block);
|
||||
#ifdef WITH_RECOMPILER
|
||||
RemoveBlockFromHostCodeMap(block);
|
||||
if (!block->invalidated)
|
||||
RemoveBlockFromHostCodeMap(block);
|
||||
#endif
|
||||
|
||||
s_blocks.erase(iter);
|
||||
|
Loading…
x
Reference in New Issue
Block a user