BOOLEAN InsertedNew;
DPRINT1("FsRtlPrivateLock() is stubplemented!\n");
- ASSERT(AlreadySynchronized);
+ /* Windows 2003 ignores that parameter
+ ASSERT(AlreadySynchronized);
+ */
/* Initialize the lock, if necessary */
if (!FileLock->LockInformation)
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;