winfsp unit tests and fixes
This commit is contained in:
parent
07d0eb0616
commit
11c58c4afb
@ -104,10 +104,8 @@ auto winfsp_drive::winfsp_service::OnStart(ULONG /*Argc*/, PWSTR * /*Argv*/)
|
||||
if ((drive_letter && not utils::file::directory(mount_location).exists())) {
|
||||
auto unicode_mount_location = utils::string::from_utf8(mount_location);
|
||||
host_.SetFileSystemName(unicode_mount_location.data());
|
||||
if (config_.get_enable_mount_manager()) {
|
||||
unicode_mount_location =
|
||||
std::wstring(L"\\\\.\\") + unicode_mount_location[0U] + L":";
|
||||
}
|
||||
ret = host_.Mount(unicode_mount_location.data());
|
||||
} else {
|
||||
std::cerr << (drive_letter ? "Mount location in use: "
|
||||
|
Loading…
x
Reference in New Issue
Block a user