diff --git a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp index 5740e304..271cc273 100644 --- a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp +++ b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp @@ -1122,8 +1122,10 @@ auto remote_server::winfsp_create(PWSTR file_name, UINT32 create_options, auto relative_path = utils::string::to_utf8(file_name); auto file_path = construct_path(relative_path); - exists = static_cast(utils::file::file{file_path}.exists() || - utils::file::directory{file_path}.exists()); + exists = utils::file::file{file_path}.exists() || + utils::file::directory{file_path}.exists() + ? 1 + : 0; auto ret{static_cast(STATUS_SUCCESS)}; if (exists == 0U) { if ((create_options & FILE_DIRECTORY_FILE) != 0U) {