WV_DEVICE_ATTRIBUTES attr;\r
HRESULT hr;\r
\r
- if (pInfo != NULL && pInfo->InfoVersion != 1) {\r
- return ND_NOT_SUPPORTED;\r
- }\r
-\r
if (*pcbInfo < sizeof(ND_ADAPTER_INFO)) {\r
hr = ND_BUFFER_OVERFLOW;\r
goto out;\r
}\r
\r
- hr = m_pWvDevice->Query(&attr);\r
+ if (pInfo != NULL && pInfo->InfoVersion != 1) {\r
+ hr = ND_NOT_SUPPORTED;\r
+ goto out;\r
+ }\r
+\r
+ hr = NDConvertWVStatus(m_pWvDevice->Query(&attr));\r
if (FAILED(hr)) {\r
goto out;\r
}\r
\r
out:\r
*pcbInfo = sizeof(ND_ADAPTER_INFO);\r
- return NDConvertWVStatus(hr);\r
+ return hr;\r
}\r
\r
STDMETHODIMP CNDAdapter::\r