- 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/

svn path=/trunk/; revision=73352
This commit is contained in:
Ged Murphy 2016-11-22 22:30:55 +00:00
parent e6d204ac42
commit dc7472be71

View file

@ -554,8 +554,9 @@ MiFindExportedRoutineByName(IN PVOID DllBase,
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;
}