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:
parent
f1c114ebc6
commit
eb0ee6d82f
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue