Incorrect CoCreateInstance()
result evaluation fixed
This commit is contained in:
parent
905fd066dc
commit
90b60031df
@ -83,7 +83,7 @@ namespace winstd
|
|||||||
{
|
{
|
||||||
handle_type h;
|
handle_type h;
|
||||||
HRESULT hr = CoCreateInstance(rclsid, pUnkOuter, dwClsContext, __uuidof(T), (void**)&h);
|
HRESULT hr = CoCreateInstance(rclsid, pUnkOuter, dwClsContext, __uuidof(T), (void**)&h);
|
||||||
if (SUCCEEDED(h))
|
if (SUCCEEDED(hr))
|
||||||
attach(h);
|
attach(h);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user