1
1

Read from the correct registry entry on Windows Vista and Server 2008.

This commit was SVN r21224.
Этот коммит содержится в:
Shiqing Fan 2009-05-13 15:56:37 +00:00
родитель fd5dd9c4cb
Коммит 3137001772

Просмотреть файл

@ -75,7 +75,10 @@ installdirs_windows_open(void)
* All others can be composed starting from OPAL_PREFIX.
*/
if( ERROR_SUCCESS != RegOpenKeyEx( HKEY_LOCAL_MACHINE, "Software\\Open MPI", 0, KEY_READ, &ompi_key) )
return 0;
/* Windows Vista and Server 2008 handles its registry differently,
also need to check Wow6432Node. */
if( ERROR_SUCCESS != RegOpenKeyEx( HKEY_LOCAL_MACHINE, "Software\\Wow6432Node\\Open MPI", 0, KEY_READ, &ompi_key) )
return 0;
SET_FIELD(ompi_key, prefix, "OPAL_PREFIX");
SET_FIELD(ompi_key, exec_prefix, "OPAL_EXEC_PREFIX");