clapper: Avoid using hardcoded API name in enhancers loader on win32

This commit is contained in:
Rafał Dzięgiel
2025-05-12 22:57:51 +02:00
parent c6c4fe309b
commit a97e7d1a96

View File

@@ -75,9 +75,8 @@ clapper_enhancers_loader_initialize (ClapperEnhancerProxyList *proxies)
win_base_dir = g_win32_get_package_installation_directory_of_module (
_enhancers_dll_handle);
/* FIXME: Avoid hardcoded major version */
custom_path = g_build_filename (win_base_dir,
"lib", "clapper-0.0", "enhancers", NULL);
"lib", CLAPPER_API_NAME, "enhancers", NULL);
enhancers_path = custom_path; // assign temporarily
g_free (win_base_dir);