From 7017eaae9561336f319c6fd31c1e92645bfcbf7e Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 19 May 2006 12:31:19 +0000 Subject: [PATCH] patch from w3seek make the kdbg build again svn path=/trunk/; revision=21943 --- reactos/ntoskrnl/kdbg/kdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/kdbg/kdb.c b/reactos/ntoskrnl/kdbg/kdb.c index 7cf7823421b..5b2c163aaaa 100644 --- a/reactos/ntoskrnl/kdbg/kdb.c +++ b/reactos/ntoskrnl/kdbg/kdb.c @@ -191,7 +191,7 @@ KdbpOverwriteInstruction( KAPC_STATE ApcState; /* Get the protection for the address. */ - Protect = MmGetPageProtect((PROS_EPROCESS)Process, (PVOID)PAGE_ROUND_DOWN(Address)); + Protect = MmGetPageProtect(Process, (PVOID)PAGE_ROUND_DOWN(Address)); /* Return if that page isn't present. */ if (Protect & PAGE_NOACCESS) @@ -208,7 +208,7 @@ KdbpOverwriteInstruction( /* Make the page writeable if it is read only. */ if (Protect & (PAGE_READONLY|PAGE_EXECUTE|PAGE_EXECUTE_READ)) { - MmSetPageProtect((PROS_EPROCESS)Process, (PVOID)PAGE_ROUND_DOWN(Address), + MmSetPageProtect(Process, (PVOID)PAGE_ROUND_DOWN(Address), (Protect & ~(PAGE_READONLY|PAGE_EXECUTE|PAGE_EXECUTE_READ)) | PAGE_READWRITE); } @@ -220,7 +220,7 @@ KdbpOverwriteInstruction( { if (Protect & (PAGE_READONLY|PAGE_EXECUTE|PAGE_EXECUTE_READ)) { - MmSetPageProtect((PROS_EPROCESS)Process, (PVOID)PAGE_ROUND_DOWN(Address), Protect); + MmSetPageProtect(Process, (PVOID)PAGE_ROUND_DOWN(Address), Protect); } /* Detach from process */ if (CurrentProcess != Process) @@ -237,7 +237,7 @@ KdbpOverwriteInstruction( /* Restore the page protection. */ if (Protect & (PAGE_READONLY|PAGE_EXECUTE|PAGE_EXECUTE_READ)) { - MmSetPageProtect((PROS_EPROCESS)Process, (PVOID)PAGE_ROUND_DOWN(Address), Protect); + MmSetPageProtect(Process, (PVOID)PAGE_ROUND_DOWN(Address), Protect); } /* Detach from process */