[NTOS/FSRTL]

* Remove a harmless ASSERT. Brought to you by Art Yerkes (arty).
CORE-6580 #resolve #comment Committed in 58270.

svn path=/trunk/; revision=58270
This commit is contained in:
Amine Khaldi 2013-02-02 18:49:53 +00:00
parent c7ba42abc2
commit 4db4c4b81f

View file

@ -858,7 +858,10 @@ FsRtlFastUnlockSingle(IN PFILE_LOCK FileLock,
Find.Exclusive.FileLock.StartingByte = *FileOffset;
Find.Exclusive.FileLock.EndingByte.QuadPart =
FileOffset->QuadPart + Length->QuadPart;
ASSERT(InternalInfo);
if (!InternalInfo) {
DPRINT("File not previously locked (ever)\n");
return STATUS_RANGE_NOT_LOCKED;
}
Entry = RtlLookupElementGenericTable(&InternalInfo->RangeTable, &Find);
if (!Entry) {
DPRINT("Range not locked %wZ\n", &FileObject->FileName);