Error loading dll always reports file not found
Rein Klazes
rklazes at xs4all.nl
Fri Feb 7 12:39:40 CST 2003
Hi,
Problem reported on the user mailing list ("Missing .so libraries for
DLL files") was not a missing but a corrupted mfc42.dll.
Changelog:
loader: pe_image.c
In PE_fixup_imports report "module file not found" only in case
of a "file not found" error. Otherwise report failure and
error number.
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/loader/pe_image.c 2002-12-17 22:09:50.000000000 +0100
+++ mywine/loader/pe_image.c 2003-02-07 19:16:00.000000000 +0100
@@ -273,7 +273,11 @@
wmImp = MODULE_LoadLibraryExA( name, 0, 0 );
if (!wmImp) {
- ERR_(module)("Module (file) %s (which is needed by %s) not found\n", name, wm->filename);
+ if(GetLastError() == ERROR_FILE_NOT_FOUND)
+ ERR_(module)("Module (file) %s (which is needed by %s) not found\n", name, wm->filename);
+ else
+ ERR_(module)("Loading module (file) %s (which is needed by %s) failed (error %ld).\n",
+ name, wm->filename, GetLastError());
return 1;
}
wm->deps[i++] = wmImp;
More information about the wine-patches
mailing list