ole32: Explicitly check for S_OK.

This commit is contained in:
Nikolay Sivov 2013-12-05 08:57:52 +04:00 committed by Alexandre Julliard
parent 97ec8b0150
commit a6944484a4

View File

@ -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);