You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BOOST_LOG(error) << "failed to split the instance id string " << convert_to_string(instance_id);
282
+
if (unstable_part_index == std::wstring::npos) {
283
+
BOOST_LOG(error) << "failed to split off the stable part from instance id string " << convert_to_string(instance_id);
285
284
break;
286
285
}
287
286
288
-
BOOST_LOG(verbose) << "creating device id for path " << convert_to_string(device_path) << " from EDID and instance ID: " << convert_to_string({ std::begin(instance_id), std::begin(instance_id) + index });
287
+
auto semi_stable_part_index = instance_id.find_first_of(L'&', unstable_part_index + 1);
288
+
if (semi_stable_part_index == std::wstring::npos) {
289
+
BOOST_LOG(error) << "failed to split off the semi-stable part from instance id string " << convert_to_string(instance_id);
290
+
break;
291
+
}
292
+
293
+
BOOST_LOG(verbose) << "creating device id for path " << convert_to_string(device_path) << " from EDID and instance ID: " << convert_to_string({ std::begin(instance_id), std::begin(instance_id) + unstable_part_index }) << convert_to_string({ std::begin(instance_id) + semi_stable_part_index, std::end(instance_id) });
0 commit comments