mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 08:26:08 +00:00
- 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:
parent
c50bcc2c12
commit
ab5634f252
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue