Fix the return value of HalReadDmaCounter at the end of transfer.
Modified: trunk/reactos/hal/halx86/generic/dma.c
_____
Modified: trunk/reactos/hal/halx86/generic/dma.c
--- trunk/reactos/hal/halx86/generic/dma.c 2005-09-04 10:02:19 UTC
(rev 17629)
+++ trunk/reactos/hal/halx86/generic/dma.c 2005-09-04 11:17:37 UTC
(rev 17630)
@@ -977,6 +977,7 @@
KeReleaseSpinLock(&AdapterObject->MasterAdapter->SpinLock, OldIrql);
Count++;
+ Count &= 0xffff;
if (AdapterObject->Width16Bits)
Count *= 2;