Nikolay Sivov : ole32: Explicitly check for S_OK.

Alexandre Julliard julliard at winehq.org
Thu Dec 5 12:49:16 CST 2013


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Dec  5 08:57:52 2013 +0400

ole32: Explicitly check for S_OK.

---

 dlls/ole32/marshal.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/marshal.c b/dlls/ole32/marshal.c
index 4f6aee4..b308600 100644
--- a/dlls/ole32/marshal.c
+++ b/dlls/ole32/marshal.c
@@ -108,7 +108,8 @@ static inline HRESULT get_facbuf_for_iid(REFIID riid, IPSFactoryBuffer **facbuf)
     HRESULT       hr;
     CLSID         clsid;
 
-    if ((hr = CoGetPSClsid(riid, &clsid)))
+    hr = CoGetPSClsid(riid, &clsid);
+    if (hr != S_OK)
         return hr;
     return CoGetClassObject(&clsid, CLSCTX_INPROC_SERVER | WINE_CLSCTX_DONT_HOST,
         NULL, &IID_IPSFactoryBuffer, (LPVOID*)facbuf);




More information about the wine-cvs mailing list