[vlc-commits] commit: WinCE: try to fix make_path() (Pierre Ynard )
git at videolan.org
git at videolan.org
Thu May 13 07:05:47 CEST 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu May 13 07:04:38 2010 +0200| [b450808821f4dac09796fbcba2a100b6c5ef0e77] | committer: Pierre Ynard
WinCE: try to fix make_path()
Untested
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b450808821f4dac09796fbcba2a100b6c5ef0e77
---
src/text/strings.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/text/strings.c b/src/text/strings.c
index 7c5bb0f..8ae50a5 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -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
More information about the vlc-commits
mailing list