Fix regression in t.anal/x86/emu

This commit is contained in:
pancake 2015-12-08 16:49:15 +01:00
parent 0880d7d4f5
commit 75ea729679
2 changed files with 1 additions and 2 deletions

View File

@ -837,7 +837,7 @@ static int cb_iobuffer(void *user, void *data) {
static int cb_iocache(void *user, void *data) {
RCore *core = (RCore *) user;
RConfigNode *node = (RConfigNode *) data;
if (!node->i_value) {
if (node->i_value<0) {
r_io_cache_reset (core->io, node->i_value);
}
r_io_cache_enable (core->io, node->i_value, node->i_value);

View File

@ -146,7 +146,6 @@ R_API int r_io_cache_read(RIO *io, ut64 addr, ut8 *buf, int len) {
r_list_foreach (io->cache, iter, c) {
if (r_range_overlap (addr, addr+len-1, c->from, c->to, &ret)) {
//eprintf ("CHKCD 0x%llx %d\n", addr, len);
if (ret>0) {
da = ret;
db = 0;