Fix the return value of HalReadDmaCounter at the end of transfer.
authorFilip Navara <filip.navara@gmail.com>
Sun, 4 Sep 2005 11:17:37 +0000 (11:17 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sun, 4 Sep 2005 11:17:37 +0000 (11:17 +0000)
svn path=/trunk/; revision=17630

reactos/hal/halx86/generic/dma.c

index e5bb327..32ee17d 100644 (file)
@@ -977,6 +977,7 @@ HalReadDmaCounter(
    KeReleaseSpinLock(&AdapterObject->MasterAdapter->SpinLock, OldIrql);
        
    Count++;
+   Count &= 0xffff;
    if (AdapterObject->Width16Bits)
       Count *= 2;