+User acceptable message on incompatible W32 binary modules. captive captive-1_1_6 captive-1_1_6_1 captive-1_1_7
authorlace <>
Mon, 26 Dec 2005 09:42:29 +0000 (09:42 +0000)
committerlace <>
Mon, 26 Dec 2005 09:42:29 +0000 (09:42 +0000)
 - If W32 symbol (exported) is not found.

ntoskrnl/ldr/loader.c

index a2276b2..90a6200 100644 (file)
 #define NDEBUG
 #include <internal/debug.h>
 
+#ifdef LIBCAPTIVE
+#include <glib/gmessages.h>
+#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);
     }