]> git.sesse.net Git - vlc/commitdiff
WinCE: try to fix make_path()
authorPierre Ynard <linkfanel@yahoo.fr>
Thu, 13 May 2010 05:04:38 +0000 (07:04 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Thu, 13 May 2010 05:04:38 +0000 (07:04 +0200)
Untested

src/text/strings.c

index 7c5bb0f63a21ac55e3c6cb6b7d192d5f878cca6c..8ae50a508985b65be0c2ae0195203b090d47ab75 100644 (file)
@@ -1185,7 +1185,7 @@ char *make_path (const char *url)
 #endif
         /* Leading slash => local path */
         if (*path == DIR_SEP_CHAR)
-#ifndef WIN32
+#if !defined (WIN32) || defined (UNDER_CE)
             return path;
 #else
             return memmove (path, path + 1, strlen (path + 1) + 1);
@@ -1226,6 +1226,7 @@ char *make_path (const char *url)
                     ret = NULL;
         }
 #else
+        /* XXX: Does this work on WinCE? */
         if (fd < 2)
             ret = strdup ("CON");
         else