Fix Cygwin breakage. Patch by Lieven van der Heide.
authorTor Lillqvist <tml@novell.com>
Mon, 31 Mar 2008 13:41:03 +0000 (13:41 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 31 Mar 2008 13:41:03 +0000 (13:41 +0000)
2008-03-31  Tor Lillqvist  <tml@novell.com>

* glib/gwin32.c
(g_win32_get_package_installation_directory_of_module): Fix Cygwin
breakage. Patch by Lieven van der Heide.

svn path=/trunk/; revision=6790

ChangeLog
glib/gwin32.c

index fdb66bef83d337e0afe2c7781d889a9fe4141953..0ba3b0f1923060a40cf72c68f63f1ef3df9fe768 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-31  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gwin32.c
+       (g_win32_get_package_installation_directory_of_module): Fix Cygwin
+       breakage. Patch by Lieven van der Heide.
+
 2008-03-31 10:39:17  Tim Janik  <timj@imendio.com>
 
        * glib/gutils.h: reapply inlining fix from r6333 to fix:
index d3dd5c2493b6e1245375d9bbd3ef8315c81ee77e..83212d5ba146cdddf5a1ca7db22e2c897baf27a3 100644 (file)
@@ -262,9 +262,9 @@ g_win32_get_package_installation_directory_of_module (gpointer hmodule)
   {
     gchar tmp[MAX_PATH];
 
-    cygwin_conv_to_posix_path(fn, tmp);
-    g_free(fn);
-    fn = g_strdup(tmp);
+    cygwin_conv_to_posix_path (retval, tmp);
+    g_free (retval);
+    retval = g_strdup (tmp);
   }
 #endif