From 99e9160c5388246ef85459871760788102196fcb Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 26 Nov 2014 15:38:08 +0000 Subject: [PATCH] corrected some mistakes in qse_fs_mkdir() --- qse/lib/cmn/fs-make.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/qse/lib/cmn/fs-make.c b/qse/lib/cmn/fs-make.c index a2429428..b6a1837a 100644 --- a/qse/lib/cmn/fs-make.c +++ b/qse/lib/cmn/fs-make.c @@ -41,7 +41,7 @@ static int make_directory_in_fs (qse_fs_t* fs, const qse_fs_char_t* fspath) APIRET rc; - rc = DosMkDir (fspath); + rc = DosMkDir (fspath, QSE_NULL); if (rc != NO_ERROR) { fs->errnum = qse_fs_syserrtoerrnum (fs, rc); @@ -76,20 +76,21 @@ static int make_directory_with_mbs (qse_fs_t* fs, const qse_mchar_t* path) qse_fs_char_t* fspath; int ret; +#if 0 if (fs->cbs.mk) { - int x; - x = fs->cbs.del (fs, path); + x = fs->cbs.mk (fs, path); if (x <= -1) return -1; if (x == 0) return 0; /* skipped */ } +#endif - fspath = qse_fs_makefspath(fs, path); + fspath = (qse_fs_char_t*)qse_fs_makefspathformbs (fs, path); if (!fspath) return -1; - ret = delete_file_from_fs (fs, fspath); - qse_fs_freefspath (fs, path, fspath); + ret = make_directory_from_fs (fs, fspath); + qse_fs_freefspathformbs (fs, path, fspath); return ret; } @@ -100,6 +101,7 @@ static int make_directory_with_wcs (qse_fs_t* fs, const qse_wchar_t* path) qse_fs_char_t* fspath; int ret; +#if 0 if (fs->cbs.mk) { int x; @@ -107,12 +109,13 @@ static int make_directory_with_wcs (qse_fs_t* fs, const qse_wchar_t* path) if (x <= -1) return -1; if (x == 0) return 0; /* skipped */ } +#endif - fspath = qse_fs_makefspath(fs, path); + fspath = (qse_fs_char_t*)qse_fs_makefspathforwcs (fs, path); if (!fspath) return -1; - ret = delete_file_from_fs (fs, fspath); - qse_fs_freefspath (fs, path, fspath); + ret = make_directory_from_fs (fs, fspath); + qse_fs_freefspathforwcs (fs, path, fspath); return ret; }