[ros-diffs] [weiden] 13149: fixed ProbeForWrite() for optimized
builds
weiden at svn.reactos.com
weiden at svn.reactos.com
Thu Jan 20 02:19:54 CET 2005
fixed ProbeForWrite() for optimized builds
Modified: trunk/reactos/ntoskrnl/mm/virtual.c
_____
Modified: trunk/reactos/ntoskrnl/mm/virtual.c
--- trunk/reactos/ntoskrnl/mm/virtual.c 2005-01-20 00:44:55 UTC (rev
13148)
+++ trunk/reactos/ntoskrnl/mm/virtual.c 2005-01-20 01:19:52 UTC (rev
13149)
@@ -820,8 +820,7 @@
IN ULONG Length,
IN ULONG Alignment)
{
- PULONG Ptr;
- ULONG x;
+ volatile PCHAR Ptr;
ULONG i;
ASSERT(Alignment ==1 || Alignment == 2 || Alignment == 4 ||
Alignment == 8);
@@ -842,9 +841,8 @@
/* Check for accessible pages */
for (i = 0; i < Length; i += PAGE_SIZE)
{
- Ptr = (PULONG)(((ULONG_PTR)Address & ~(PAGE_SIZE - 1)) + i);
- x = *Ptr;
- *Ptr = x;
+ Ptr = (PCHAR)(((ULONG_PTR)Address & ~(PAGE_SIZE - 1)) + i);
+ *Ptr = *Ptr;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050120/50b077ad/attachment.html
More information about the Ros-diffs
mailing list