Changeset 990 for Daodan/src/Daodan_Patch.c
- Timestamp:
- Apr 2, 2014, 2:48:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan_Patch.c
r983 r990 168 168 DDrPatch_MakeJump(&trampoline[pos], (void*)disasm.EIP); 169 169 DDrPatch_NOOP(from, (void*)disasm.EIP - from); 170 171 DWORD oldp; 172 if (!VirtualProtect(trampoline, 40, PAGE_EXECUTE_READWRITE, &oldp)) { 173 DDrStartupMessage("Daodan: Detour: Could not mark page for trampoline as executable: from address 0x%08x", from); 174 return (void*)-1; 175 } 170 176 DDrPatch_MakeJump(from, to); 171 177 /* … … 213 219 DDrStartupMessage(""); 214 220 DDrStartupMessage(""); 215 */ 221 */ 222 216 223 return trampoline; 217 224 }
Note:
See TracChangeset
for help on using the changeset viewer.