handle the case when ExRundownCompleted() was called before ExReleaseRundownProtectionEx()

svn path=/trunk/; revision=13700
This commit is contained in:
Thomas Bluemel 2005-02-21 00:39:59 +00:00
parent 502d8150de
commit 838bea2661

View file

@ -118,7 +118,11 @@ ExReleaseRundownProtectionEx (
/* Get Pointer */
PRUNDOWN_DESCRIPTOR RundownDescriptor = (PRUNDOWN_DESCRIPTOR)((ULONG_PTR)RunRef->Ptr & ~EX_RUNDOWN_ACTIVE);
ASSERT(RundownDescriptor != NULL);
if (RundownDescriptor == NULL)
{
/* the rundown was completed and there's no one to notify */
break;
}
Current = RundownDescriptor->References;