From 3a7652200d5383c1be4e83cd59e9fb5be1521a24 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 24 Nov 2014 01:43:31 +0100 Subject: also search for 32bit xjadeo on 64bit windows --- gtk2_ardour/video_timeline.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtk2_ardour/video_timeline.cc') diff --git a/gtk2_ardour/video_timeline.cc b/gtk2_ardour/video_timeline.cc index 5ba6c2b9ac..0eeed4a29a 100644 --- a/gtk2_ardour/video_timeline.cc +++ b/gtk2_ardour/video_timeline.cc @@ -754,6 +754,12 @@ VideoTimeLine::find_xjadeo () { { _xjadeo_bin = std::string(g_build_filename(Glib::locale_to_utf8(tmp).c_str(), "xjadeo.exe", 0)); } + else if ( (ERROR_SUCCESS == RegOpenKeyExA (HKEY_LOCAL_MACHINE, "Software\\RSS\\xjadeo", 0, KEY_READ | KEY_WOW64_32KEY, &key)) + && (ERROR_SUCCESS == RegQueryValueExA (key, "Install_Dir", 0, NULL, reinterpret_cast(tmp), &size)) + ) + { + _xjadeo_bin = std::string(g_build_filename(Glib::locale_to_utf8(tmp).c_str(), "xjadeo.exe", 0)); + } else if (program_files && Glib::file_test(g_build_filename(program_files, "xjadeo", "xjadeo.exe", 0), Glib::FILE_TEST_EXISTS)) { _xjadeo_bin = std::string(g_build_filename(program_files, "xjadeo", "xjadeo.exe", 0)); -- cgit v1.2.3