From 2f61e19156acc170ecd5ddb05132076eda9a859b Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 21 Jul 2010 14:07:03 +0400 Subject: [PATCH] ole32: Fix assumption about HRESULT failure code value. --- dlls/ole32/git.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/ole32/git.c b/dlls/ole32/git.c index e961f904136..3800de0072f 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; } -- 2.11.4.GIT