Nikolay Sivov : ole32: Fix assumption about HRESULT failure code value.
Module: wine Branch: master Commit: 2f61e19156acc170ecd5ddb05132076eda9a859b URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f61e19156acc170ecd5ddb051... Author: Nikolay Sivov <nsivov(a)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; }
participants (1)
-
Alexandre Julliard