From 0f5ec1729a41ce2bce36dc396eaf4c27a3423b01 Mon Sep 17 00:00:00 2001 From: lace <> Date: Mon, 26 Dec 2005 09:42:29 +0000 Subject: [PATCH] +User acceptable message on incompatible W32 binary modules. - If W32 symbol (exported) is not found. --- ntoskrnl/ldr/loader.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ntoskrnl/ldr/loader.c b/ntoskrnl/ldr/loader.c index a2276b2..90a6200 100644 --- a/ntoskrnl/ldr/loader.c +++ b/ntoskrnl/ldr/loader.c @@ -47,6 +47,10 @@ #define NDEBUG #include +#ifdef LIBCAPTIVE +#include +#endif /* LIBCAPTIVE */ + /* GLOBALS *******************************************************************/ LIST_ENTRY ModuleListHead; @@ -1585,6 +1589,10 @@ LdrPEGetExportAddress(PMODULE_OBJECT ModuleObject, DbgPrint("Export not found for %d:%s\n", Hint, Name != NULL ? Name : "(Ordinal)"); +#ifdef LIBCAPTIVE + g_error("Please check the versions of \"ntfs.sys\" and \"ntoskrnl.exe\" - do they match each other?\n" + "Because export not found for: %d:%s",Hint,(Name ? Name : "(Ordinal)")); +#endif /* LIBCAPTIVE */ KEBUGCHECK(0); } -- 1.8.3.1