From 186cf59ec4591dad3cfbf975d365df23aef835ba Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 28 Jan 2025 09:54:36 +0530 Subject: [PATCH] ... --- src/calibre/devices/mtp/windows/content_enumeration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/mtp/windows/content_enumeration.cpp b/src/calibre/devices/mtp/windows/content_enumeration.cpp index 0ecea05c0d..d365ddb783 100644 --- a/src/calibre/devices/mtp/windows/content_enumeration.cpp +++ b/src/calibre/devices/mtp/windows/content_enumeration.cpp @@ -157,7 +157,7 @@ get_object_filename(IPortableDeviceProperties *devprops, IPortableDeviceKeyColle Py_BEGIN_ALLOW_THREADS; hr = devprops->GetValues(object_id, properties, &values); Py_END_ALLOW_THREADS; - if (FAILED(hr)) { hresult_set_exc("Failed to get properties for object", hr); return NULL; } + if (FAILED(hr)) { hresult_set_exc("Failed to get filename for object", hr); return NULL; } com_wchar_raii property; hr = values->GetStringValue(WPD_OBJECT_ORIGINAL_FILE_NAME, property.unsafe_address()); if (SUCCEEDED(hr)) return PyUnicode_FromWideChar(property.ptr(), -1);