From ac16fec27e19de8578e7b422355bf4353c7dceb9 Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Thu, 4 Jun 2009 08:18:12 +0000 Subject: [PATCH] - MiFindExportedRoutineByNam: Correct an typo in assert that caused MmGetSystemRoutineAddress to assert after finding a valid non forwarder function. svn path=/trunk/; revision=41277 --- reactos/ntoskrnl/mm/sysldr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/sysldr.c b/reactos/ntoskrnl/mm/sysldr.c index 2bcdd10ca49..4649b6e56bf 100644 --- a/reactos/ntoskrnl/mm/sysldr.c +++ b/reactos/ntoskrnl/mm/sysldr.c @@ -281,7 +281,7 @@ MiFindExportedRoutineByName(IN PVOID DllBase, Function = (PVOID)((ULONG_PTR)DllBase + ExportTable[Ordinal]); /* We found it! */ - ASSERT((Function > (PVOID)ExportDirectory) && + ASSERT(!(Function > (PVOID)ExportDirectory) && (Function < (PVOID)((ULONG_PTR)ExportDirectory + ExportSize))); return Function; }