refactor event system

This commit is contained in:
2025-01-23 09:38:15 -06:00
parent 4241adb4d3
commit d732bfb224

View File

@ -77,8 +77,8 @@ auto remote_winfsp_drive::winfsp_service::OnStart(ULONG, PWSTR *) -> NTSTATUS {
}
if (ret != STATUS_SUCCESS) {
event_system2::instance().raise<drive_mount_failed>(
function_name, mount_location, std::to_string(ret));
event_system2::instance().raise<drive_mount_failed>(function_name,
mount_location, ret);
if (not lock_.set_mount_state(false, "", -1)) {
utils::error::raise_error(function_name, "failed to set mount state");
}