programs/winetest: Show dll versions again for Win9x/WinME.

This commit is contained in:
Paul Vriens 2009-03-05 10:07:37 +01:00 committed by Alexandre Julliard
parent cf56483f14
commit 6bbe4604d7
1 changed files with 2 additions and 1 deletions

View File

@ -564,6 +564,7 @@ extract_test_proc (HMODULE hModule, LPCTSTR lpszType,
*strstr(dllname, testexe) = 0; *strstr(dllname, testexe) = 0;
wine_tests[nr_of_files].maindllpath = NULL; wine_tests[nr_of_files].maindllpath = NULL;
strcpy(filename, dllname);
dll = LoadLibraryExA(dllname, NULL, LOAD_LIBRARY_AS_DATAFILE); dll = LoadLibraryExA(dllname, NULL, LOAD_LIBRARY_AS_DATAFILE);
if (!dll && pLoadLibraryShim) if (!dll && pLoadLibraryShim)
{ {
@ -580,6 +581,7 @@ extract_test_proc (HMODULE hModule, LPCTSTR lpszType,
* the tests for this dll. * the tests for this dll.
*/ */
GetModuleFileNameA(dll, dllpath, MAX_PATH); GetModuleFileNameA(dll, dllpath, MAX_PATH);
strcpy(filename, dllpath);
*strrchr(dllpath, '\\') = '\0'; *strrchr(dllpath, '\\') = '\0';
wine_tests[nr_of_files].maindllpath = xstrdup( dllpath ); wine_tests[nr_of_files].maindllpath = xstrdup( dllpath );
} }
@ -594,7 +596,6 @@ extract_test_proc (HMODULE hModule, LPCTSTR lpszType,
xprintf (" %s=load error Gecko is not installed\n", dllname); xprintf (" %s=load error Gecko is not installed\n", dllname);
return TRUE; return TRUE;
} }
GetModuleFileNameA(dll, filename, MAX_PATH);
FreeLibrary(dll); FreeLibrary(dll);
if (!(err = get_subtests( tempdir, &wine_tests[nr_of_files], lpszName ))) if (!(err = get_subtests( tempdir, &wine_tests[nr_of_files], lpszName )))