]> Pileus Git - ~andy/gtk/blobdiff - gdk-pixbuf/queryloaders.c
Merges from stable branch that had been left out. (#136282, J. Ali Harlow)
[~andy/gtk] / gdk-pixbuf / queryloaders.c
index f5428f30dad0d179899e5f0d9da2270979f73219..e2f6bfc91035b310372cf4cd9da0a09e02f3aaf5 100644 (file)
@@ -162,6 +162,19 @@ query_module (const char *dir, const char *file)
                GdkPixbufFormat *info;
                GdkPixbufModule *vtable;
                
+#ifdef G_OS_WIN32
+               /* Replace backslashes in path with forward slashes, so that
+                * it reads in without problems.
+                */
+               {
+                       char *p = path;
+                       while (*p) {
+                               if (*p == '\\')
+                                       *p = '/';
+                               p++;
+                       }
+               }
+#endif 
                info = g_new0 (GdkPixbufFormat, 1);
                vtable = g_new0 (GdkPixbufModule, 1);