Merge pull request #14009 from Dentomologist/windowsdevice_silence_missing_property_log_spam

WindowsDevice: Silence missing property log spam
This commit is contained in:
Jordan Woyak 2025-10-13 15:41:52 -05:00 committed by GitHub
commit e0e2c7461b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,8 @@ std::optional<std::wstring> GetPropertyHelper(auto function, auto dev,
if (const auto result = function(dev, requested_property, &type, nullptr, &buffer_size, 0);
result != CR_SUCCESS && result != CR_BUFFER_SMALL)
{
WARN_LOG_FMT(COMMON, "CM_Get_DevNode_Property returned: {}", result);
if (result != CR_NO_SUCH_VALUE)
WARN_LOG_FMT(COMMON, "CM_Get_DevNode_Property returned: {}", result);
return std::nullopt;
}
if (type != expected_type)