Commit 55f648fa authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winetest: Clarify the 'version not present' error.

Most of the time the library is actually missing (or only available in the wrong bitness). Show the error code to help diagnose the other cases. Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 44222dc9
...@@ -135,8 +135,10 @@ static char * get_file_version(char * file_name) ...@@ -135,8 +135,10 @@ static char * get_file_version(char * file_name)
heap_free(data); heap_free(data);
} else } else
sprintf(version, "version error %u", ERROR_OUTOFMEMORY); sprintf(version, "version error %u", ERROR_OUTOFMEMORY);
} else } else if (GetLastError() == ERROR_FILE_NOT_FOUND)
sprintf(version, "version not present"); sprintf(version, "dll is missing");
else
sprintf(version, "version not present %u", GetLastError());
return version; return version;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment