inline void ApplyPatch(void *address, int offset, const patch_t *patch, patch_t *restore) { unsigned char *addr = (unsigned char *)address + offset; ProtectMemory((void *)addr, 20, PAGE_EXECUTE_READWRITE);