Incorrect CoCreateInstance()
result evaluation fixed
This commit is contained in:
parent
905fd066dc
commit
90b60031df
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user