Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Search Windows Registry for installed RTP #1673

Merged
merged 1 commit into from Mar 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/filefinder.cpp
Expand Up @@ -454,7 +454,7 @@ static void add_rtp_path(const std::string& p) {
}

static void read_rtp_registry(const std::string& company, const std::string& product, const std::string& key) {
#ifdef USE_WINE_REGISTRY
#if defined(USE_WINE_REGISTRY) || defined(_WIN32)
std::string rtp_path = Registry::ReadStrValue(HKEY_CURRENT_USER, "Software\\" + company + "\\" + product, key, KEY32);
if (!rtp_path.empty()) {
add_rtp_path(rtp_path);
Expand Down