[NTOSKRNL]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 4 Mar 2012 12:52:02 +0000 (12:52 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 4 Mar 2012 12:52:02 +0000 (12:52 +0000)
Comment out two overzealous ASSERTs

svn path=/trunk/; revision=55996

reactos/ntoskrnl/fsrtl/filelock.c

index 08faf51..589cadb 100644 (file)
@@ -251,7 +251,9 @@ FsRtlPrivateLock(IN PFILE_LOCK FileLock,
        BOOLEAN InsertedNew;
 
     DPRINT1("FsRtlPrivateLock() is stubplemented!\n");
-       ASSERT(AlreadySynchronized);
+    /* Windows 2003 ignores that parameter
+    ASSERT(AlreadySynchronized);
+    */
 
     /* Initialize the lock, if necessary */
     if (!FileLock->LockInformation)
@@ -502,7 +504,8 @@ FsRtlFastUnlockSingle(IN PFILE_LOCK FileLock,
        PLOCK_INFORMATION InternalInfo = FileLock->LockInformation;
        // The region to unlock must correspond exactly to a previously locked region
        // -- msdn
-       ASSERT(AlreadySynchronized);
+       // But Windows 2003 doesn't assert on it and simply ignores that parameter
+       // ASSERT(AlreadySynchronized);
        Find.Exclusive.FileLock.StartingByte = *FileOffset;
        Find.Exclusive.FileLock.EndingByte.QuadPart = 
                FileOffset->QuadPart + Length->QuadPart;