"Vincent Povirk" vincent@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.