Skip to content
Snippets Groups Projects
Commit 33be954e authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard
Browse files

In PE_fixup_imports report "module file not found" only in case of a

"file not found" error. Otherwise report failure and error number.
parent e1c72027
No related branches found
No related tags found
No related merge requests found
......@@ -273,7 +273,11 @@ DWORD PE_fixup_imports( WINE_MODREF *wm )
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment