projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9c455c
)
fixed ProbeForWrite() for optimized builds
author
Thomas Bluemel
<thomas@reactsoft.com>
Thu, 20 Jan 2005 01:19:52 +0000
(
01:19
+0000)
committer
Thomas Bluemel
<thomas@reactsoft.com>
Thu, 20 Jan 2005 01:19:52 +0000
(
01:19
+0000)
svn path=/trunk/; revision=13149
reactos/ntoskrnl/mm/virtual.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/virtual.c
b/reactos/ntoskrnl/mm/virtual.c
index
211fd11
..
6321380
100644
(file)
--- a/
reactos/ntoskrnl/mm/virtual.c
+++ b/
reactos/ntoskrnl/mm/virtual.c
@@
-820,8
+820,7
@@
ProbeForWrite (IN CONST VOID *Address,
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
@@
ProbeForWrite (IN CONST VOID *Address,
/* 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;
}
}