Author: gedmurphy
Date: Tue Nov 22 22:30:55 2016
New Revision: 73352
URL:
http://svn.reactos.org/svn/reactos?rev=73352&view=rev
Log:
[NTOS]
- Fix an assert in MiFindExportedRoutineByName to be something more like what the original
author probably wanted to do.
- This allows FileSpy to run successfully with the legacy filter driver
-
https://postimg.org/image/7z73xy4pd/
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/sysldr.c [iso-8859-1] Tue Nov 22 22:30:55 2016
@@ -554,8 +554,9 @@
Function = (PVOID)((ULONG_PTR)DllBase + ExportTable[Ordinal]);
/* We found it! */
- ASSERT(!(Function > (PVOID)ExportDirectory) &&
- (Function < (PVOID)((ULONG_PTR)ExportDirectory + ExportSize)));
+ ASSERT((Function < (PVOID)ExportDirectory) ||
+ (Function > (PVOID)((ULONG_PTR)ExportDirectory + ExportSize)));
+
return Function;
}