Unverified Commit 855f2f1c authored by Tobias's avatar Tobias
Browse files

plug-ins: Fix finding raw loaders on Win/OSX

Without including gdk.h the #defines to determine the system are not
available, resulting in no platform specific code being compiled in.
parent e6c1c14a
......@@ -20,6 +20,8 @@
#include "config.h"
#include <gdk/gdk.h>
#ifdef GDK_WINDOWING_QUARTZ
#include <CoreServices/CoreServices.h>
#endif
......@@ -104,7 +106,7 @@ file_raw_get_executable_path (const gchar *main_executable,
/* else, app bundle was not found, try path search as last resort. */
}
#elif defined (GDK_WINDOWING_WIN32)
if (registry_key_base)
if (win32_registry_key_base)
{
/* Look for the application in the Windows registry. */
char *registry_key;
......@@ -113,10 +115,9 @@ file_raw_get_executable_path (const gchar *main_executable,
long status;
if (suffix)
registry_key = g_strconcat (registry_key_base, suffix, ".exe", NULL);
registry_key = g_strconcat (win32_registry_key_base, suffix, ".exe", NULL);
else
registry_key = g_strconcat (registry_key_base, ".exe", NULL);
registry_key = g_strconcat (win32_registry_key_base, ".exe", NULL);
status = RegGetValue (HKEY_LOCAL_MACHINE, registry_key, "", RRF_RT_ANY,
NULL, (PVOID)&path, &buffer_size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment