| 801 | } |
| 802 | |
| 803 | HRESULT ConvertGenericVariantToString(const VARIANT *vt, TCHAR *szDetail, size_t cchMax) |
| 804 | { |
| 805 | VARIANT vtDest; |
| 806 | VariantInit(&vtDest); |
| 807 | HRESULT hr = VariantChangeType(&vtDest, vt, 0, VT_BSTR); |
| 808 | |
| 809 | if (SUCCEEDED(hr)) |
| 810 | { |
| 811 | hr = StringCchCopy(szDetail, cchMax, V_BSTR(&vtDest)); |
| 812 | VariantClear(&vtDest); |
| 813 | } |
| 814 | |
| 815 | return hr; |
| 816 | } |
| 817 | |
| 818 | // Returns either the parsing path for the specified item, or its in |
| 819 | // folder name. The in folder name will be returned when the parsing |
no outgoing calls
no test coverage detected