mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
ole32: Explicitly check for S_OK.
This commit is contained in:
parent
97ec8b0150
commit
a6944484a4
@ -108,7 +108,8 @@ static inline HRESULT get_facbuf_for_iid(REFIID riid, IPSFactoryBuffer **facbuf)
|
||||
HRESULT hr;
|
||||
CLSID clsid;
|
||||
|
||||
if ((hr = CoGetPSClsid(riid, &clsid)))
|
||||
hr = CoGetPSClsid(riid, &clsid);
|
||||
if (hr != S_OK)
|
||||
return hr;
|
||||
return CoGetClassObject(&clsid, CLSCTX_INPROC_SERVER | WINE_CLSCTX_DONT_HOST,
|
||||
NULL, &IID_IPSFactoryBuffer, (LPVOID*)facbuf);
|
||||
|
Loading…
Reference in New Issue
Block a user