[ros-diffs] [pschweitzer] 55996: [NTOSKRNL] Comment out two overzealous ASSERTs

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Sun Mar 4 12:52:02 UTC 2012


Author: pschweitzer
Date: Sun Mar  4 12:52:02 2012
New Revision: 55996

URL: http://svn.reactos.org/svn/reactos?rev=55996&view=rev
Log:
[NTOSKRNL]
Comment out two overzealous ASSERTs

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?rev=55996&r1=55995&r2=55996&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/filelock.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/filelock.c [iso-8859-1] Sun Mar  4 12:52:02 2012
@@ -251,7 +251,9 @@
 	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 @@
 	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;




More information about the Ros-diffs mailing list