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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 13 08:44:26 CDT 2015


Module: wine
Branch: master
Commit: 0e24c33332ce560033795cf831a2d87c41625a51
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0e24c33332ce560033795cf831a2d87c41625a51

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Mar 13 11:52:27 2015 +0300

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

---

 dlls/ole32/ole2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c
index b9cc1f0..38b23dc 100644
--- a/dlls/ole32/ole2.c
+++ b/dlls/ole32/ole2.c
@@ -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




More information about the wine-cvs mailing list