Re: mscoree: Search for Mono in some predefined paths before using the registry.
22 Sep
2010
22 Sep
'10
6:14 p.m.
"Vincent Povirk" <vincent(a)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(a)winehq.org
5559
Age (days ago)
5559
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard