Author: fireball
Date: Sun Jun 29 03:03:25 2008
New Revision: 34171
URL:
http://svn.reactos.org/svn/reactos?rev=34171&view=rev
Log:
- 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.
Modified:
trunk/reactos/dll/win32/kernel32/mem/procmem.c
Modified: trunk/reactos/dll/win32/kernel32/mem/procmem.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/mem/pro…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/mem/procmem.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/mem/procmem.c [iso-8859-1] Sun Jun 29 03:03:25 2008
@@ -79,7 +79,7 @@
PAGE_WRITECOPY |
PAGE_EXECUTE_READWRITE |
PAGE_EXECUTE_WRITECOPY) ? FALSE : TRUE;
- if (UnProtect)
+ if (!UnProtect)
{
/* Set the new protection */
Status = NtProtectVirtualMemory(hProcess,