Commit 0e24c333 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 24dce2b2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment