diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2010-04-16 23:56:53 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2010-04-16 23:56:53 +0000 |
commit | 448b0275ae4d62b31f64e3c6399d4fb5a045315c (patch) | |
tree | d42cf1938d8ef3497381b7a8858651044f58ea7c /windows/findfile.c | |
parent | 01eb197f56ae69b0e4dba5d3475585d9cdda599c (diff) | |
download | netsurf-448b0275ae4d62b31f64e3c6399d4fb5a045315c.tar.gz netsurf-448b0275ae4d62b31f64e3c6399d4fb5a045315c.tar.bz2 |
Fix file: handling on risc os, gtk, windows and framebuffer frontends
svn path=/trunk/netsurf/; revision=10419
Diffstat (limited to 'windows/findfile.c')
-rw-r--r-- | windows/findfile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/windows/findfile.c b/windows/findfile.c index c3e613d3a..f4f5e4557 100644 --- a/windows/findfile.c +++ b/windows/findfile.c @@ -38,10 +38,14 @@ static char *realpath(const char *path, char *resolved_path) char *path_to_url(const char *path) { - char *url = malloc(strlen(path) + FILE_SCHEME_PREFIX_LEN + 1); + char *url = malloc(strlen(path) + FILE_SCHEME_PREFIX_LEN + 3); char *sidx; strcpy(url, FILE_SCHEME_PREFIX); + if (*path == '/') { + /* unix style path start, so try wine Z: */ + strcat(url, "Z:"); + } strcat(url, path); sidx = strrchr(url, '\\'); |