Author: akhaldi
Date: Sat Feb 2 18:49:53 2013
New Revision: 58270
URL:
http://svn.reactos.org/svn/reactos?rev=58270&view=rev
Log:
[NTOS/FSRTL]
* Remove a harmless ASSERT. Brought to you by Art Yerkes (arty).
CORE-6580 #resolve #comment Committed in 58270.
Modified:
trunk/reactos/ntoskrnl/fsrtl/filelock.c
Modified: trunk/reactos/ntoskrnl/fsrtl/filelock.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/filelock.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/filelock.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/filelock.c [iso-8859-1] Sat Feb 2 18:49:53 2013
@@ -858,7 +858,10 @@
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);