ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan_Patch.c
(Generate patch)

Comparing Daodan/src/Daodan_Patch.c (file contents):
Revision 1008 by alloc, Mon Aug 25 23:21:09 2014 UTC vs.
Revision 1045 by alloc, Sun Aug 28 16:01:38 2016 UTC

# Line 65 | Line 65 | void* DDrPatch_MakeDetour(void* from, vo
65                                  }
66                                  branches++;
67                                  int target = disasm.Instruction.AddrValue;
68 <                                bool targetInTrampoline = ((void*)disasm.Instruction.AddrValue - from) < 5;
68 >                                bool targetInTrampoline = ((void*)((int)disasm.Instruction.AddrValue) - from) < 5;
69                                  switch (disasm.Instruction.BranchType) {
70                                          case JmpType:
71                                          case CallType:

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)