[glib] Make sure compiled resources only have / as dirsep



commit 3c6efd4d5077862adc918c651ab7c49dc133d643
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Mon Apr 21 15:00:18 2014 +0000

    Make sure compiled resources only have / as dirsep
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725511

 gio/glib-compile-resources.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index 537ca78..6bad64f 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]