removed redundant redefintion of qse_fattr_t

changed to call qse_wcstombs() instead of qse_wcstombsall() which doesn't exist
This commit is contained in:
hyung-hwan 2019-03-14 16:14:43 +00:00
parent 2ff8ee7c27
commit 5cf583d8c4
2 changed files with 3 additions and 5 deletions

View File

@ -170,8 +170,6 @@ struct qse_fs_ent_t
typedef struct qse_fs_ent_t qse_fs_ent_t;
typedef qse_fattr_t qse_fattr_t;
#if defined(_WIN32)
typedef void* qse_fs_handle_t;
#else
@ -399,14 +397,14 @@ QSE_EXPORT int qse_fs_getattrmbs (
QSE_EXPORT int qse_fs_getattrwcs (
qse_fs_t* fs,
const qse_wchar_t* path,
qse_fattr_t* attr,
qse_fattr_t* attr,
int flags
);
QSE_EXPORT int qse_fs_setattrmbs (
qse_fs_t* fs,
qse_mchar_t* path,
const qse_fattr_t* attr,
const qse_fattr_t* attr,
int flags /** bitwise-ORed #qse_file_attr_flag_t enumerators */
);

View File

@ -87,7 +87,7 @@ void Path::setName (const qse_wchar_t* n) QSE_CPP_NOEXCEPT
{
#if defined(QSE_CHAR_IS_MCHAR)
qse_size_t ml = QSE_COUNTOF(this->full_path), wl;
qse_wcstombsall (n, &wl, this->full_path, &ml);
qse_wcstombs (n, &wl, this->full_path, &ml);
#else
qse_wcsxcpy (this->full_path, QSE_COUNTOF(this->full_path), n);
#endif