Author: fireball
Date: Thu Dec 23 09:14:42 2010
New Revision: 50111
URL: http://svn.reactos.org/svn/reactos?rev=50111&view=rev
Log:
[NTOS]
- Fix copypasta, thanks Victor!
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/virtual.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] Thu Dec 23 09:14:42 2010
@@ -2458,7 +2458,7 @@
ASSERT(BaseVpn > Vad->EndingVpn);
/* Stop if there is no right child */
- if (!Vad->LeftChild) break;
+ if (!Vad->RightChild) break;
/* Search on the right next */
Vad = Vad->RightChild;
Author: fireball
Date: Wed Dec 22 21:59:27 2010
New Revision: 50108
URL: http://svn.reactos.org/svn/reactos?rev=50108&view=rev
Log:
[NTOS]
- Fix memory region size calculation in MemoryBasicInformation in certain cases. Spotted by Michael Martin.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/virtual.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] Wed Dec 22 21:59:27 2010
@@ -2446,6 +2446,9 @@
/* Check if this VAD is too high */
if (BaseVpn < Vad->StartingVpn)
{
+ /* Stop if there is no left child */
+ if (!Vad->LeftChild) break;
+
/* Search on the left next */
Vad = Vad->LeftChild;
}
@@ -2453,6 +2456,11 @@
{
/* Then this VAD is too low, keep searching on the right */
ASSERT(BaseVpn > Vad->EndingVpn);
+
+ /* Stop if there is no right child */
+ if (!Vad->LeftChild) break;
+
+ /* Search on the right next */
Vad = Vad->RightChild;
}
}
Author: rmessiant
Date: Wed Dec 22 19:09:25 2010
New Revision: 50105
URL: http://svn.reactos.org/svn/reactos?rev=50105&view=rev
Log:
[I8042PRT]
- Calculate packet type according to PS/2++ spec (CID 1810).
- Fix technical detail in comment to match spec.
Modified:
trunk/reactos/drivers/input/i8042prt/ps2pp.c
Modified: trunk/reactos/drivers/input/i8042prt/ps2pp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/i8042prt/ps2…
==============================================================================
--- trunk/reactos/drivers/input/i8042prt/ps2pp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/i8042prt/ps2pp.c [iso-8859-1] Wed Dec 22 19:09:25 2010
@@ -31,7 +31,7 @@
* a normal packet.
*
* Otherwise, the packet is different, like this:
- * 1: E 1 b3 b2 x x x x
+ * 1: E 1 b3 b2 1 x x x
* 2: x x b1 b0 x1 x0 1 0
* 3: x x x x x x x1 x0
*
@@ -93,8 +93,8 @@
}
/* Now get the packet type */
- PktType = ((DeviceExtension->MouseLogiBuffer[0] & 0x30) >> 4) &
- ((DeviceExtension->MouseLogiBuffer[1] & 0x30) >> 6);
+ PktType = ((DeviceExtension->MouseLogiBuffer[0] & 0x30) >> 2) |
+ ((DeviceExtension->MouseLogiBuffer[1] & 0x30) >> 4);
switch (PktType)
{