ole32: Avoid potential null pointer access (Coverity).

This commit is contained in:
Nikolay Sivov 2015-05-31 15:03:50 +03:00 committed by Alexandre Julliard
parent 336cc78744
commit 5c0e48e8ca
1 changed files with 3 additions and 3 deletions

View File

@ -1211,10 +1211,10 @@ HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid)
res=StgOpenStorage(filePathName,NULL,STGM_READ | STGM_SHARE_DENY_WRITE,NULL,0,&pstg);
if (SUCCEEDED(res))
if (SUCCEEDED(res)) {
res=ReadClassStg(pstg,pclsid);
IStorage_Release(pstg);
IStorage_Release(pstg);
}
return res;
}