[NTOS:CC] Avoid some magic numbers.

This commit is contained in:
Thomas Faber 2018-02-20 13:18:34 +01:00
parent b8741e2bb3
commit 56e2bf2f92
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
3 changed files with 6 additions and 3 deletions

View file

@ -594,7 +594,7 @@ Clear:
{
/* Mark read ahead as unactive */
KeAcquireSpinLockAtDpcLevel(&PrivateCacheMap->ReadAheadSpinLock);
InterlockedAnd((volatile long *)&PrivateCacheMap->UlongFlags, 0xFFFEFFFF);
InterlockedAnd((volatile long *)&PrivateCacheMap->UlongFlags, ~PRIVATE_CACHE_MAP_READ_AHEAD_ACTIVE);
KeReleaseSpinLockFromDpcLevel(&PrivateCacheMap->ReadAheadSpinLock);
}
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);