ntdll: output searched path when a DLL is not found by import_dll

Hongbo Ni hongbo at njstar.com
Fri Aug 1 02:16:44 CDT 2008


it will be hard to know why a DLL is not found without showing
the path system has just searched.

---
 dlls/ntdll/loader.c |   4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 5d47b19..a682d2e 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -514,8 +514,8 @@ static WINE_MODREF *import_dll( HMODULE module, const IMAGE_IMPORT_DESCRIPTOR *d
     if (status)
     {
         if (status == STATUS_DLL_NOT_FOUND)
-            ERR("Library %s (which is needed by %s) not found\n",
-                name, debugstr_w(current_modref->ldr.FullDllName.Buffer));
+            ERR("Library %s (which is needed by %s) not found on %s\n",
+                name, debugstr_w(current_modref->ldr.FullDllName.Buffer), debugstr_w(load_path));
         else
             ERR("Loading library %s (which is needed by %s) failed (error %x).\n",
                 name, debugstr_w(current_modref->ldr.FullDllName.Buffer), status);

-- 





More information about the wine-patches mailing list