mscoree: Search for Mono in some predefined paths before using the registry.
Alexandre Julliard
julliard at winehq.org
Wed Sep 22 13:14:27 CDT 2010
"Vincent Povirk" <vincent at codeweavers.com> writes:
> + hfind = FindFirstFileW(wildcard, &find_data);
> +
> + if (hfind == INVALID_HANDLE_VALUE) return FALSE;
> +
> + do {
> + if (find_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
> + {
> + strcpyW(mono_path, folder);
> + strcatW(mono_path, slash);
> + strcatW(mono_path, find_data.cFileName);
> +
> + found = find_mono_dll(mono_path, mono_dll_path, &abi_version);
> + }
> + } while (!found && FindNextFileW(hfind, &find_data));
That seems quite dangerous. I don't think we want to use any random mono
dll we find, especially in a way where we can't predict which one will
be used.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list