Do log SHCreateItemFromParsingName() errors

Even if we mostly ignore them when they happen, it can still be useful
to see them in the debug logs.
This commit is contained in:
Vadim Zeitlin 2022-07-17 19:20:29 +01:00
parent f1c114ebc6
commit eb0ee6d82f

View file

@ -392,6 +392,14 @@ HRESULT InitShellItemFromPath(wxCOMPtr<IShellItem>& item, const wxString& path)
NULL,
wxIID_PPV_ARGS(IShellItem, &item)
);
if ( FAILED(hr) )
{
wxLogApiError
(
wxString::Format(wxS("SHCreateItemFromParsingName(\"%s\")"), path),
hr
);
}
return hr;
}