Incorrect CoCreateInstance() result evaluation fixed

This commit is contained in:
Simon Rozman 2017-02-23 11:04:57 +01:00
parent 905fd066dc
commit 90b60031df

View File

@ -83,7 +83,7 @@ namespace winstd
{
handle_type h;
HRESULT hr = CoCreateInstance(rclsid, pUnkOuter, dwClsContext, __uuidof(T), (void**)&h);
if (SUCCEEDED(h))
if (SUCCEEDED(hr))
attach(h);
return hr;
}