Re: mscoree: Search for Mono in some predefined paths before using the registry. (try 2)

2010-09-23 Thread Vincent Povirk
That was why I was checking c:\windows\mono first. On Thu, Sep 23, 2010 at 5:05 AM, Alexandre Julliard wrote: > "Vincent Povirk" writes: > >> +    /* Last: the registry */ >> +    return get_mono_path_from_registry(path); > > You probably want to check the registry first, to make it possible to

Re: mscoree: Search for Mono in some predefined paths before using the registry. (try 2)

2010-09-23 Thread Alexandre Julliard
"Vincent Povirk" writes: > +/* Last: the registry */ > +return get_mono_path_from_registry(path); You probably want to check the registry first, to make it possible to override the global install if necessary. -- Alexandre Julliard julli...@winehq.org

Re: mscoree: Search for Mono in some predefined paths before using the registry.

2010-09-22 Thread Alexandre Julliard
"Vincent Povirk" 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); > +st