Skip to content

Commit

Permalink
bug fix (thanks Jaewon Jung)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-saint committed Aug 23, 2013
1 parent b338122 commit e0d88f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DynamicPatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ dpAPI bool dpInitialize(const dpConfig &conf)
});
dpLink();
}
dpEach(cf.loads, [](const std::string &v){ dpLoad(v.c_str()); });
dpEach(cf.source_paths, [](const std::string &v){ dpAddSourcePath(v.c_str()); });
dpEach(cf.module_paths, [](const std::string &v){ dpAddModulePath(v.c_str()); });
dpEach(cf.preload_paths, [](const std::string &v){ dpAddPreloadPath(v.c_str()); });
Expand Down
2 changes: 1 addition & 1 deletion dpPatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void dpPatcher::patchImpl(dpPatchData &pi)
BYTE *trampoline = (BYTE*)m_talloc.allocate(target);
dpAddJumpInstruction(trampoline, hook);
dpAddJumpInstruction(target, trampoline);
::FlushInstructionCache(proc, pi.trampoline, 32);
::FlushInstructionCache(proc, trampoline, 32);
::FlushInstructionCache(proc, target, 32);
pi.trampoline = trampoline;
}
Expand Down

0 comments on commit e0d88f3

Please sign in to comment.