Nikolay Sivov : ole32: Fix assumption about HRESULT failure code value.

Alexandre Julliard julliard at winehq.org
Wed Jul 21 10:55:00 CDT 2010


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Jul 21 14:07:03 2010 +0400

ole32: Fix assumption about HRESULT failure code value.

---

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

diff --git a/dlls/ole32/git.c b/dlls/ole32/git.c
index e961f90..3800de0 100644
--- a/dlls/ole32/git.c
+++ b/dlls/ole32/git.c
@@ -187,9 +187,9 @@ StdGlobalInterfaceTable_RegisterInterfaceInGlobal(
   TRACE("About to marshal the interface\n");
 
   hres = CreateStreamOnHGlobal(0, TRUE, &stream);
-  if (hres) return hres;
+  if (hres != S_OK) return hres;
   hres = CoMarshalInterface(stream, riid, pUnk, MSHCTX_INPROC, NULL, MSHLFLAGS_TABLESTRONG);
-  if (hres)
+  if (hres != S_OK)
   {
     IStream_Release(stream);
     return hres;
@@ -281,7 +281,7 @@ StdGlobalInterfaceTable_GetInterfaceFromGlobal(
 
   LeaveCriticalSection(&git_section);
 
-  if (hres) {
+  if (hres != S_OK) {
     WARN("Failed to clone stream with error 0x%08x\n", hres);
     return hres;
   }




More information about the wine-cvs mailing list