Lines Matching defs:protection
1053 // Change memory protection to writable.
1054 DWORD protection = 0;
1055 if (!ChangeMemoryProtection(header, patch_length, &protection))
1064 // Restore previous memory protection.
1065 if (!RestoreMemoryProtection(header, patch_length, protection))
1095 // Change memory protection to writable.
1096 DWORD protection = 0;
1097 if (!ChangeMemoryProtection(old_func, kJumpInstructionLength, &protection))
1103 // Restore previous memory protection.
1104 if (!RestoreMemoryProtection(old_func, kJumpInstructionLength, protection))
1144 // Change memory protection to writable.
1145 DWORD protection = 0;
1146 if (!ChangeMemoryProtection(header, patch_length, &protection))
1153 // Restore previous memory protection.
1154 if (!RestoreMemoryProtection(header, patch_length, protection))
1199 // Change memory protection to writable.
1202 DWORD protection = 0;
1203 if (!ChangeMemoryProtection(patch_address, patch_length, &protection))
1209 // Restore previous memory protection.
1210 if (!RestoreMemoryProtection(patch_address, patch_length, protection))