aboutsummaryrefslogtreecommitdiff
path: root/shared/common/mifi.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 16:46:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 16:46:29 +0000
commiteae942b7b4ed36f5f43edd20ae6abd9e923b96c0 (patch)
tree1b265676adc167d6f30f80ca98e56d37b182b806 /shared/common/mifi.c
parentc025f3253dd48185ee556e4ef32cce794be11904 (diff)
merge in Win32 UTF-8 file/path support
svn path=/trunk/externals/miXed/; revision=16950
Diffstat (limited to 'shared/common/mifi.c')
-rw-r--r--shared/common/mifi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shared/common/mifi.c b/shared/common/mifi.c
index c0a7178..4da9f55 100644
--- a/shared/common/mifi.c
+++ b/shared/common/mifi.c
@@ -545,8 +545,7 @@ static int mifiread_startfile(t_mifiread *mr, const char *filename,
if (fnameptr != slashpos)
strcpy(slashpos, fnameptr);
}
- sys_bashfilename(path, path);
- if (!(mr->mr_fp = fopen(path, "rb")))
+ if (!(mr->mr_fp = sys_fopen(path, "rb")))
{
strcpy(errmess, "cannot open");
goto rstartfailed;
@@ -1328,8 +1327,7 @@ int mifiwrite_open(t_mifiwrite *mw, const char *filename,
if (*dirname)
strcat(fnamebuf, dirname), strcat(fnamebuf, "/");
strcat(fnamebuf, filename);
- sys_bashfilename(fnamebuf, fnamebuf);
- if (!(mw->mw_fp = fopen(fnamebuf, "wb")))
+ if (!(mw->mw_fp = sys_fopen(fnamebuf, "wb")))
{
strcpy(errmess, "cannot open");
goto wopenfailed;