+2001-02-10 Tor Lillqvist <tml@iki.fi>
+
+ * gwin32.c (get_package_directory_from_module): Don't store
+ address of local variable in hashtable.
+
2001-02-08 Fatih Demir <kabalak@kabalak.net>
* configure.in: Added "tr" to ALL_LINGUAS.
+2001-02-10 Tor Lillqvist <tml@iki.fi>
+
+ * gwin32.c (get_package_directory_from_module): Don't store
+ address of local variable in hashtable.
+
2001-02-08 Fatih Demir <kabalak@kabalak.net>
* configure.in: Added "tr" to ALL_LINGUAS.
+2001-02-10 Tor Lillqvist <tml@iki.fi>
+
+ * gwin32.c (get_package_directory_from_module): Don't store
+ address of local variable in hashtable.
+
2001-02-08 Fatih Demir <kabalak@kabalak.net>
* configure.in: Added "tr" to ALL_LINGUAS.
+2001-02-10 Tor Lillqvist <tml@iki.fi>
+
+ * gwin32.c (get_package_directory_from_module): Don't store
+ address of local variable in hashtable.
+
2001-02-08 Fatih Demir <kabalak@kabalak.net>
* configure.in: Added "tr" to ALL_LINGUAS.
+2001-02-10 Tor Lillqvist <tml@iki.fi>
+
+ * gwin32.c (get_package_directory_from_module): Don't store
+ address of local variable in hashtable.
+
2001-02-08 Fatih Demir <kabalak@kabalak.net>
* configure.in: Added "tr" to ALL_LINGUAS.
+2001-02-10 Tor Lillqvist <tml@iki.fi>
+
+ * gwin32.c (get_package_directory_from_module): Don't store
+ address of local variable in hashtable.
+
2001-02-08 Fatih Demir <kabalak@kabalak.net>
* configure.in: Added "tr" to ALL_LINGUAS.
+2001-02-10 Tor Lillqvist <tml@iki.fi>
+
+ * gwin32.c (get_package_directory_from_module): Don't store
+ address of local variable in hashtable.
+
2001-02-08 Fatih Demir <kabalak@kabalak.net>
* configure.in: Added "tr" to ALL_LINGUAS.
+2001-02-10 Tor Lillqvist <tml@iki.fi>
+
+ * gwin32.c (get_package_directory_from_module): Don't store
+ address of local variable in hashtable.
+
2001-02-08 Fatih Demir <kabalak@kabalak.net>
* configure.in: Added "tr" to ALL_LINGUAS.
{
static GHashTable *module_dirs = NULL;
HMODULE hmodule = NULL;
- gchar fn[MAX_PATH];
+ gchar *fn;
gchar *p;
gchar *result;
return NULL;
}
- if (!GetModuleFileName (hmodule, fn, sizeof (fn)))
+ fn = g_malloc (MAX_PATH);
+ if (!GetModuleFileName (hmodule, fn, MAX_PATH))
return NULL;
if ((p = strrchr (fn, '\\')) != NULL)
{
static GHashTable *module_dirs = NULL;
HMODULE hmodule = NULL;
- gchar fn[MAX_PATH];
+ gchar *fn;
gchar *p;
gchar *result;
return NULL;
}
- if (!GetModuleFileName (hmodule, fn, sizeof (fn)))
+ fn = g_malloc (MAX_PATH);
+ if (!GetModuleFileName (hmodule, fn, MAX_PATH))
return NULL;
if ((p = strrchr (fn, '\\')) != NULL)