| 61 | } |
| 62 | |
| 63 | ULONG_PTR Detour2gbAbove(ULONG_PTR address) { |
| 64 | #if defined(DETOURS_64BIT) |
| 65 | return (address < (ULONG_PTR)0xffffffff80000000) ? address + 0x7ff80000 : (ULONG_PTR)0xfffffffffff80000; |
| 66 | #else |
| 67 | return (address < (ULONG_PTR)0x80000000) ? address + 0x7ff80000 : (ULONG_PTR)0xfff80000; |
| 68 | #endif |
| 69 | } |
| 70 | |
| 71 | void MapLockedCopyMemory(PUCHAR pDst, PVOID pSrc, ULONG length) { |
| 72 | UCHAR code[4] = { 0 }; |
no outgoing calls
no test coverage detected