ole32: Print error message when IPersistStorage_Load fails (Coverity)

André Hentschel nerv at dawncrow.de
Mon Nov 23 13:26:12 CST 2015


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
CID 1336207

 dlls/ole32/compobj.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 2f55076..b146376 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -3443,7 +3443,9 @@ HRESULT WINAPI CoGetInstanceFromIStorage(
 
   if (ps)
   {
-      IPersistStorage_Load(ps, storage);
+      hr = IPersistStorage_Load(ps, storage);
+      if (FAILED(hr))
+          ERR("failed to load storage\n");
       IPersistStorage_Release(ps);
   }
 
-- 
1.9.1




More information about the wine-patches mailing list