Make sure compiled resources only have / as dirsep
authorРуслан Ижбулатов <lrn1986@gmail.com>
Mon, 21 Apr 2014 15:00:18 +0000 (15:00 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Tue, 5 Aug 2014 21:49:54 +0000 (21:49 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=725511

gio/glib-compile-resources.c

index 537ca78..6bad64f 100644 (file)
@@ -188,7 +188,7 @@ find_file (const gchar *filename)
   /* search all the sourcedirs for the correct files in order */
   for (i = 0; sourcedirs[i] != NULL; i++)
     {
-       real_file = g_build_filename (sourcedirs[i], filename, NULL);
+       real_file = g_build_path ("/", sourcedirs[i], filename, NULL);
        exists = g_file_test (real_file, G_FILE_TEST_EXISTS);
        if (exists)
          return real_file;