mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 18:00:41 +00:00
[NTOSKRNL]
Comment out two overzealous ASSERTs svn path=/trunk/; revision=55996
This commit is contained in:
parent
354085c7e8
commit
d2e6e7b9d0
1 changed files with 5 additions and 2 deletions
|
@ -251,7 +251,9 @@ FsRtlPrivateLock(IN PFILE_LOCK FileLock,
|
||||||
BOOLEAN InsertedNew;
|
BOOLEAN InsertedNew;
|
||||||
|
|
||||||
DPRINT1("FsRtlPrivateLock() is stubplemented!\n");
|
DPRINT1("FsRtlPrivateLock() is stubplemented!\n");
|
||||||
ASSERT(AlreadySynchronized);
|
/* Windows 2003 ignores that parameter
|
||||||
|
ASSERT(AlreadySynchronized);
|
||||||
|
*/
|
||||||
|
|
||||||
/* Initialize the lock, if necessary */
|
/* Initialize the lock, if necessary */
|
||||||
if (!FileLock->LockInformation)
|
if (!FileLock->LockInformation)
|
||||||
|
@ -502,7 +504,8 @@ FsRtlFastUnlockSingle(IN PFILE_LOCK FileLock,
|
||||||
PLOCK_INFORMATION InternalInfo = FileLock->LockInformation;
|
PLOCK_INFORMATION InternalInfo = FileLock->LockInformation;
|
||||||
// The region to unlock must correspond exactly to a previously locked region
|
// The region to unlock must correspond exactly to a previously locked region
|
||||||
// -- msdn
|
// -- 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.StartingByte = *FileOffset;
|
||||||
Find.Exclusive.FileLock.EndingByte.QuadPart =
|
Find.Exclusive.FileLock.EndingByte.QuadPart =
|
||||||
FileOffset->QuadPart + Length->QuadPart;
|
FileOffset->QuadPart + Length->QuadPart;
|
||||||
|
|
Loading…
Reference in a new issue