- Fix a problem spotted by Juriy Sidorov in bug 3415. With this fix applied, GDB is able to work much better - be able to write in memory, set breakpoints, etc.

See issue #3415 for more details.

svn path=/trunk/; revision=34171
This commit is contained in:
Aleksey Bragin 2008-06-29 08:03:25 +00:00
parent c50bcc2c12
commit ab5634f252

View file

@ -79,7 +79,7 @@ WriteProcessMemory(IN HANDLE hProcess,
PAGE_WRITECOPY |
PAGE_EXECUTE_READWRITE |
PAGE_EXECUTE_WRITECOPY) ? FALSE : TRUE;
if (UnProtect)
if (!UnProtect)
{
/* Set the new protection */
Status = NtProtectVirtualMemory(hProcess,