| 106 | } |
| 107 | |
| 108 | void CPatch::PutCallFunction(DWORD dwAddress, const void* to) |
| 109 | { |
| 110 | DWORD movement = (DWORD)to - dwAddress - 5; |
| 111 | |
| 112 | SaveAndDisablePatchDebugState(); |
| 113 | |
| 114 | PatchBYTE(dwAddress, 0xE8); // call |
| 115 | |
| 116 | PatchDWORD(dwAddress + 1, movement); |
| 117 | |
| 118 | RestoreSavedPatchDebugState(); |
| 119 | } |
| 120 | |
| 121 | // NOPs instruction (0x90) |
| 122 | void CPatch::NOPinstructions(DWORD dwAddress, int iSize) |
nothing calls this directly
no outgoing calls
no test coverage detected