ole32: Handle Stat() failure in OleLoad() (PVS-Studio).

This commit is contained in:
Nikolay Sivov 2015-03-13 11:52:27 +03:00 committed by Alexandre Julliard
parent 24dce2b229
commit 0e24c33332

View File

@ -1279,6 +1279,8 @@ HRESULT WINAPI OleLoad(
* Get the class ID for the object.
*/
hres = IStorage_Stat(pStg, &storageInfo, STATFLAG_NONAME);
if (FAILED(hres))
return hres;
/*
* Now, try and create the handler for the object