diff --git a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp index 62f86bfb..99081fb5 100644 --- a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp +++ b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp @@ -622,12 +622,14 @@ auto winfsp_drive::Mounted(PVOID host) -> NTSTATUS { static_cast(__FUNCTION__), }; - auto ret = STATUS_SUCCESS; + auto ret{STATUS_SUCCESS}; if (not utils::file::change_to_process_directory()) { - return utils::get_last_error_code(); + return static_cast(utils::get_last_error_code()); } - auto *file_system_host = reinterpret_cast(host); + auto *file_system_host{ + reinterpret_cast(host), + }; polling::instance().start(&config_); fm_ = std::make_unique(config_, provider_); server_ = std::make_unique(config_, provider_, *fm_);