[ros-diffs] [fireball] 34171: - 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.

fireball at svn.reactos.org fireball at svn.reactos.org
Sun Jun 29 10:03:26 CEST 2008


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/procmem.c?rev=34171&r1=34170&r2=34171&view=diff
==============================================================================
--- 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,



More information about the Ros-diffs mailing list