Andrew Eikum : qcap: Use HRESULT correctly.