[NTOSKRNL]

Comment out two overzealous ASSERTs

svn path=/trunk/; revision=55996
This commit is contained in:
Pierre Schweitzer 2012-03-04 12:52:02 +00:00
parent 354085c7e8
commit d2e6e7b9d0

View 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;