refactoring
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
This commit is contained in:
parent
9d36ded2b3
commit
c286dc4f5c
@ -143,9 +143,10 @@ public:
|
|||||||
|
|
||||||
void shutdown() { ::GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0); }
|
void shutdown() { ::GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0); }
|
||||||
|
|
||||||
static void display_options(int argc, char *argv[]) {}
|
static void display_options(int /* argc */, char * /* argv[] */) {}
|
||||||
|
|
||||||
static void display_version_information(int argc, char *argv[]) {}
|
static void display_version_information(int /* argc */, char * /* argv[] */) {
|
||||||
|
}
|
||||||
};
|
};
|
||||||
} // namespace remote_winfsp
|
} // namespace remote_winfsp
|
||||||
} // namespace repertory
|
} // namespace repertory
|
||||||
|
@ -138,7 +138,8 @@ auto remote_winfsp_drive::Create(PWSTR file_name, UINT32 create_options,
|
|||||||
set_file_info(ofi->FileInfo, fi);
|
set_file_info(ofi->FileInfo, fi);
|
||||||
const auto file_path = utils::string::from_utf8(normalized_name);
|
const auto file_path = utils::string::from_utf8(normalized_name);
|
||||||
wcsncpy(ofi->NormalizedName, &file_path[0], wcslen(&file_path[0]));
|
wcsncpy(ofi->NormalizedName, &file_path[0], wcslen(&file_path[0]));
|
||||||
ofi->NormalizedNameSize = (UINT16)(wcslen(&file_path[0]) * sizeof(WCHAR));
|
ofi->NormalizedNameSize =
|
||||||
|
static_cast<UINT16>(wcslen(&file_path[0]) * sizeof(WCHAR));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
@ -290,7 +291,8 @@ auto remote_winfsp_drive::Open(PWSTR file_name, UINT32 create_options,
|
|||||||
set_file_info(ofi->FileInfo, fi);
|
set_file_info(ofi->FileInfo, fi);
|
||||||
const auto file_path = utils::string::from_utf8(normalize_name);
|
const auto file_path = utils::string::from_utf8(normalize_name);
|
||||||
wcsncpy(ofi->NormalizedName, &file_path[0], wcslen(&file_path[0]));
|
wcsncpy(ofi->NormalizedName, &file_path[0], wcslen(&file_path[0]));
|
||||||
ofi->NormalizedNameSize = (UINT16)(wcslen(&file_path[0]) * sizeof(WCHAR));
|
ofi->NormalizedNameSize =
|
||||||
|
static_cast<UINT16>(wcslen(&file_path[0]) * sizeof(WCHAR));
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -57,7 +57,7 @@ E_SIMPLE3(winfsp_event, debug, true,
|
|||||||
winfsp_drive::winfsp_service::winfsp_service(
|
winfsp_drive::winfsp_service::winfsp_service(
|
||||||
lock_data &lock, winfsp_drive &drive, std::vector<std::string> drive_args,
|
lock_data &lock, winfsp_drive &drive, std::vector<std::string> drive_args,
|
||||||
app_config &config)
|
app_config &config)
|
||||||
: Service((PWSTR)L"Repertory"),
|
: Service(static_cast<PWSTR>(REPERTORY_W)),
|
||||||
lock_(lock),
|
lock_(lock),
|
||||||
drive_(drive),
|
drive_(drive),
|
||||||
drive_args_(std::move(drive_args)),
|
drive_args_(std::move(drive_args)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user