From: Pierre Ynard Date: Thu, 13 May 2010 05:04:38 +0000 (+0200) Subject: WinCE: try to fix make_path() X-Git-Tag: 1.2.0-pre1~6665 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b450808821f4dac09796fbcba2a100b6c5ef0e77;p=vlc WinCE: try to fix make_path() Untested --- diff --git a/src/text/strings.c b/src/text/strings.c index 7c5bb0f63a..8ae50a5089 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