Lines Matching defs:protection
777 // Change memory protection to writable.
778 DWORD protection = 0;
779 if (!ChangeMemoryProtection(header, patch_length, &protection))
788 // Restore previous memory protection.
789 if (!RestoreMemoryProtection(header, patch_length, protection))
819 // Change memory protection to writable.
820 DWORD protection = 0;
821 if (!ChangeMemoryProtection(old_func, kJumpInstructionLength, &protection))
827 // Restore previous memory protection.
828 if (!RestoreMemoryProtection(old_func, kJumpInstructionLength, protection))
868 // Change memory protection to writable.
869 DWORD protection = 0;
870 if (!ChangeMemoryProtection(header, patch_length, &protection))
877 // Restore previous memory protection.
878 if (!RestoreMemoryProtection(header, patch_length, protection))
923 // Change memory protection to writable.
926 DWORD protection = 0;
927 if (!ChangeMemoryProtection(patch_address, patch_length, &protection))
933 // Restore previous memory protection.
934 if (!RestoreMemoryProtection(patch_address, patch_length, protection))